优化 JWT 令牌的存储和使用逻辑;调整布局样式和组件属性

This commit is contained in:
2025-04-06 23:09:48 +08:00
parent d5c9e663da
commit eb306b66b0
14 changed files with 144 additions and 140 deletions

View File

@@ -16,9 +16,6 @@ import { useNotificationStore } from './store/useNotificationStore'
const pinia = createPinia()
export const getPinia = () => pinia
const app = createApp(App)
app.use(router).use(pinia).mount('#app')
QueryGetAPI<string>(`${BASE_API_URL}vtsuru/version`)
.then((version) => {
if (version.code == 200) {
@@ -126,6 +123,9 @@ QueryGetAPI<string>(`${BASE_API_URL}vtsuru/version`)
UpdateAccountLoop()
})
const app = createApp(App)
app.use(router).use(pinia).mount('#app')
let currentVersion: string
let isHaveNewVersion = false