修改认证

master
ihzero 2023-11-12 20:52:24 +08:00
parent 2040f7c833
commit 1372e1a8a9
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ export default {
mixins: [globalMixin],
onLaunch: function (e) {
console.log('App Launch')
const { token } = e.query
if (token) {
jwt.setAccessToken(token)
}
if (!store.state.user_access_token) {
//
uni.redirectTo({