This commit is contained in:
qsh
2026-01-30 19:26:21 +08:00
parent f2c12828ac
commit 2816c3da62
5 changed files with 103 additions and 108 deletions

View File

@@ -2,6 +2,7 @@
import config from './config'
import { getToken } from '@/utils/auth'
import { useConfigStore } from '@/store'
import { useUserStore } from '@/store'
import { getCurrentInstance } from "vue"
import { onLaunch } from '@dcloudio/uni-app'
@@ -28,6 +29,9 @@
function checkLogin() {
if (!getToken()) {
proxy.$tab.reLaunch('/pages/login')
} else {
// 重新获取用户权限
useUserStore().getInfo()
}
}
</script>