|
@@ -39,9 +39,12 @@ const actions = {
|
|
|
if (res.errcode === 0) {
|
|
|
localStorage.setItem('token', res.data);
|
|
|
user = jwt.decode(res.data);
|
|
|
- commit('setUser', user, { root: true });
|
|
|
+ console.log(user);
|
|
|
+ if (user.code == 'WJDCXT') {
|
|
|
+ commit('setUser', user, { root: true });
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|
|
|
- return res;
|
|
|
},
|
|
|
async updatePwd({ commit }, { id, ...data }) {
|
|
|
const res = await this.$axios.$post(`${api.adminLoginInfo}/password/${id}`, data);
|