diff --git a/App.vue b/App.vue index 355badd..419f2e1 100644 --- a/App.vue +++ b/App.vue @@ -19,7 +19,6 @@ uni.reLaunch({ url: '/pages/login/blank?token=' + options.query.token }) - this.$store.commit('changeLoginType', options.query.token) } else if (this.$store.state.user.token) { this.$store.dispatch('startRefreshTokenTimer') this.$store.dispatch('startRefreshNewsTimer') diff --git a/pages/index/index.vue b/pages/index/index.vue index 517fbe3..389cec4 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -277,13 +277,6 @@ }, onLoad: function(options) { }, onShow: function() { - console.log(this.$store.state.auth.loginType, 'index') - // if(this.$store.state.auth.loginType !== 0) { - // uni.reLaunch({ - // url: '/pages/login/blank' - // }) - // return - // } if (!this.$store.state.user.token) { uni.reLaunch({ url: '/pages/login/login'