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 --> <!-- loaded progress -->
<n-progress <n-progress
:border-radius="0" :border-radius="0"
:color="fullyLoaded ? '#0000' : themeVars.primaryColor" :color="loadProgress >= 100 ? '#0000' : themeVars.primaryColor"
:height="2" :height="2"
:percentage="loadProgress" :percentage="loadProgress"
:processing="loading" :processing="loading"

View File

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