This commit is contained in:
jxxghp
2024-06-18 12:04:10 +08:00
parent e003b6f9a7
commit b0a043b464
2 changed files with 1 additions and 4 deletions
+1
View File
@@ -104,6 +104,7 @@ async function storageChanged(storage: string) {
} }
} }
activeStorage.value = storage activeStorage.value = storage
emit('pathchanged', { path: '/', fileid: 'root' })
} }
// 路径变化 // 路径变化
@@ -62,10 +62,6 @@ const storageObject = computed(() => {
function changeStorage(code: string) { function changeStorage(code: string) {
if (inProps.storage !== code) { if (inProps.storage !== code) {
emit('storagechanged', code) emit('storagechanged', code)
emit('pathchanged', {
path: '/',
fileid: 'root',
})
} }
} }