src/store/modules/user.js
@@ -20,8 +20,9 @@ const password = userInfo.password const code = userInfo.code const uuid = userInfo.uuid const identity = userInfo.identity return new Promise((resolve, reject) => { login(username, password, code, uuid).then(res => { login(username, password, code, uuid, identity).then(res => { setToken(res.data.token) Cookies.set('userInfo',JSON.stringify(res.data)) this.token = res.data.token