mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 04:54:58 +08:00
🐛 空值时获取不到path
This commit is contained in:
parent
d1f084c59e
commit
8067c80c1e
|
@ -19,6 +19,7 @@ defineExpose({
|
|||
})
|
||||
|
||||
function setTab(e: MenuItem) {
|
||||
if(!e) return
|
||||
tabActive.value = e.path
|
||||
if(!tabs.value.some((o: MenuItem) => o.path === e.path)) {
|
||||
tabs.value.push(e)
|
||||
|
|
Loading…
Reference in New Issue
Block a user