🐛 空值时获取不到path

This commit is contained in:
gaofy 2023-12-19 09:25:25 +08:00
parent d1f084c59e
commit 8067c80c1e

View File

@ -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)