diff --git a/frontend/src/components/desktop/LockDesktop.vue b/frontend/src/components/desktop/LockDesktop.vue index aad74cf..28c3043 100644 --- a/frontend/src/components/desktop/LockDesktop.vue +++ b/frontend/src/components/desktop/LockDesktop.vue @@ -121,6 +121,7 @@ onMounted(() => { }); async function onLogin() { + localStorage.removeItem("godoosClientId"); if (loginCallback) { const res = await loginCallback(userName.value, userPassword.value); if (res) { diff --git a/frontend/src/hook/useComputer.ts b/frontend/src/hook/useComputer.ts index fdc3886..cc73b4a 100644 --- a/frontend/src/hook/useComputer.ts +++ b/frontend/src/hook/useComputer.ts @@ -21,7 +21,7 @@ export const useComputer = (adpater: { if (path === '') path = '/'; else if (path === '/') path = '/'; else if (path.endsWith('/')) path = path.substr(0, path.length - 1); - + if(path.substring(0,2) !== '/F') { const isExist = await adpater.exists(path); if (!isExist) { @@ -75,7 +75,7 @@ export const useComputer = (adpater: { // const path = file?.isShare ? file.titleName : file.path const path = file.path adpater.setRouter(path); - refersh(file); + refersh(); } else { adpater.openFile(file.path); }