修改认证
parent
2040f7c833
commit
1372e1a8a9
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue