Refactor token handling and enable MQTT connection

This commit is contained in:
wangqiao
2025-08-24 21:48:14 +08:00
parent 587dbbeca6
commit 43724c4d4d
2 changed files with 17 additions and 13 deletions

View File

@ -67,6 +67,7 @@
import { top } from '~/api/home/index'
import type { ProjectDrawStatisticAppRespVO } from '~/api/home/type'
import { Search } from '@element-plus/icons-vue'
import refreshToken from "~/utils/RefreshToken";
import useUserStore from '~/store/user'
const userStore = useUserStore()
const app = useNuxtApp()
@ -88,6 +89,8 @@
// 是否登录
const isLogin = computed(() => {
console.log('userStore.token', userStore);
return !!userStore.token
})