修复绑定手机号的问题

This commit is contained in:
gaoxs
2020-04-16 20:05:40 +08:00
parent 5093e5a76c
commit 2171e9f7bd
4 changed files with 30 additions and 13 deletions

View File

@ -208,6 +208,7 @@ export const login = (option) => {
resolve(data)
uni.hideLoading();
store.commit("LOGIN", data.token, dayjs(data.expires_time));
store.dispatch('USERINFO', true)
console.log(store)
handleGetUserInfo()

View File

@ -57,6 +57,7 @@ function baseRequest(options) {
}).then(res => {
const data = res.data || {};
if (res.status !== 200) {
return Promise.reject({ msg: "请求失败", res, data });
}
if ([410000, 410001, 410002].indexOf(data.status) !== -1) {