Browse Source

fix: 重新加载后回到登录页面

master
guoapeng 1 week ago
parent
commit
9e961c778c
  1. 2
      src/hooks/useActivateDebug.ts

2
src/hooks/useActivateDebug.ts

@ -1,4 +1,5 @@
import { ElMessageBox } from 'element-plus' import { ElMessageBox } from 'element-plus'
import { delToken } from 'libs/token'
import { useSystemStore } from 'stores/systemStore' import { useSystemStore } from 'stores/systemStore'
import { ref } from 'vue' import { ref } from 'vue'
@ -24,6 +25,7 @@ export const useActivateDebug = () => {
logoClickCount.value = 0 // 重置计数器 logoClickCount.value = 0 // 重置计数器
}) })
.then(() => { .then(() => {
delToken()
location.reload() location.reload()
}) })
} }

Loading…
Cancel
Save