fix: clean tree status after flush database

This commit is contained in:
Lykin 2023-12-27 18:02:35 +08:00
parent f597002378
commit b7433fadaa
2 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,7 @@ onMounted(() => onReload())
<!-- loaded progress -->
<n-progress
:border-radius="0"
:color="fullyLoaded ? '#0000' : themeVars.primaryColor"
:color="loadProgress >= 100 ? '#0000' : themeVars.primaryColor"
:height="2"
:percentage="loadProgress"
:processing="loading"

View File

@ -1724,6 +1724,8 @@ const useBrowserStore = defineStore('browser', {
// set tab content empty
const tab = useTabStore()
tab.emptyTab(server)
tab.setSelectedKeys(server)
tab.setCheckedKeys(server)
return true
}
} finally {