src/store/modules/user.js
@@ -24,12 +24,8 @@ actions: { // 登录 login(userInfo) { const userName = userInfo.userName.trim() const password = userInfo.password // const code = userInfo.code // const uuid = userInfo.uuid return new Promise((resolve, reject) => { login(userName, password).then(res => { login(userInfo).then(res => { setToken(res.data.token) this.token = res.token