Browse Source

fix:uuid及ts检查的bug

master
wei_yunxiao 7 months ago
parent
commit
327b6b435a
  1. 1
      frontend/src/components/desktop/LockDesktop.vue
  2. 4
      frontend/src/hook/useComputer.ts

1
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) {

4
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);
}

Loading…
Cancel
Save