修改认证
parent
2040f7c833
commit
1372e1a8a9
|
|
@ -6,6 +6,10 @@ export default {
|
||||||
mixins: [globalMixin],
|
mixins: [globalMixin],
|
||||||
onLaunch: function (e) {
|
onLaunch: function (e) {
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
|
const { token } = e.query
|
||||||
|
if (token) {
|
||||||
|
jwt.setAccessToken(token)
|
||||||
|
}
|
||||||
if (!store.state.user_access_token) {
|
if (!store.state.user_access_token) {
|
||||||
//未登录
|
//未登录
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue