diff --git a/pages/login/login.vue b/pages/login/login.vue index 9df69ce..a5d44da 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -18,6 +18,7 @@ }else { this.Post({code: option.code},'/api/wechat/oauth_callback').then(res => { console.log(this.$store.state.user.toPath) + return; if(res.code == 1) { this.$store.commit('changeUserInfo', res.data) if (this.$store.state.user.toPath.includes('user/user') || this.$store.state.user.toPath.includes('daoyou/index')) { diff --git a/static/js/request.js b/static/js/request.js index 836b54e..f8916c8 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -33,7 +33,7 @@ Vue.prototype.Post = (params, apiurl) => { title: res.data.msg, icon: 'none' }) - reject(null) + reject(res.data) }, 0) if (res.data.code === 401) { store.commit('changeLoginPath') diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 78b0676..9c54230 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@