refactor(app): extract page logic into composable drivers

This commit is contained in:
skytek_xinliang
2026-05-19 16:38:08 +08:00
parent 2b780a12c2
commit 51fbbd7101
13 changed files with 576 additions and 692 deletions
+6 -1
View File
@@ -74,7 +74,12 @@ function closeTab(path: string) {
emit('close', path)
}
defineExpose({ tabs, activeTab, closeTab })
function clearTabs() {
tabs.value = []
activeTab.value = null
}
defineExpose({ tabs, activeTab, closeTab, clearTabs })
</script>
<template>