feat: 登录修改

This commit is contained in:
super_liu
2021-06-23 15:26:27 +08:00
parent 72afe1c685
commit a2185c7bad
+3 -3
View File
@@ -91,7 +91,7 @@ export default {
let userInfo2 = decodeURIComponent(userInfoStr)
let userInfoObj = JSON.parse(userInfo2)
this.setToken(userInfoObj.usid) // vuex存储token
this.getByUserInfoCode().then((userInfo) => {
this.getByUserInfoCode(userInfoObj.usid).then((userInfo) => {
if (userInfo !== '' && userInfo !== null) {
userInfo.workNum = userInfoObj.workNum
if (userInfo.userPic !== null) {
@@ -237,9 +237,9 @@ export default {
})
},
// 获取用户信息
getByUserInfoCode () {
getByUserInfoCode (userId) {
return new Promise((resolve, reject) => {
this.$http.get('person/userInfo/getByUserInfoCode', {
this.$http.get('person/userInfo/getByUserInfoCode?userId='+ userId, {
}, {
_this: this,
prefix: '/foton'