Browse Source

提交

master
chenkainan 5 months ago
parent
commit
47b88a1eec
  1. 7
      pages/index/index.vue
  2. 2
      static/js/request.js

7
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);
})
},
// 234
gotoUrlNew(item) {

2
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;
}

Loading…
Cancel
Save