sc
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user