diff --git a/pages/index/index.vue b/pages/index/index.vue index 134de10..6be9d87 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -184,13 +184,6 @@ this.shiguang = res.data[0] } }) - - this.Post({ - mobile: '18639595995', - captcha: '123456' - }, '/api/user/mobilelogin').then(res => { - this.$store.commit('changeUserInfo', res.data.userinfo); - }) }, // 2是各种详情页,3是列表专题页面,4是小程序 gotoUrlNew(item) { diff --git a/static/js/request.js b/static/js/request.js index d03b51f..7107bff 100644 --- a/static/js/request.js +++ b/static/js/request.js @@ -43,7 +43,7 @@ Vue.prototype.NEWAPIURL = '/api'; // #endif Vue.prototype.Post = (params = {}, apiurl) => { - const token = getToken() || '948acca7-f801-4d65-beea-79dde49b1fa3'; + const token = getToken(); if (token) { params.token = token; }