refactor(app): extract page logic into composable drivers
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user