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