feat: 登录修改
This commit is contained in:
@@ -91,7 +91,7 @@ export default {
|
|||||||
let userInfo2 = decodeURIComponent(userInfoStr)
|
let userInfo2 = decodeURIComponent(userInfoStr)
|
||||||
let userInfoObj = JSON.parse(userInfo2)
|
let userInfoObj = JSON.parse(userInfo2)
|
||||||
this.setToken(userInfoObj.usid) // vuex存储token
|
this.setToken(userInfoObj.usid) // vuex存储token
|
||||||
this.getByUserInfoCode().then((userInfo) => {
|
this.getByUserInfoCode(userInfoObj.usid).then((userInfo) => {
|
||||||
if (userInfo !== '' && userInfo !== null) {
|
if (userInfo !== '' && userInfo !== null) {
|
||||||
userInfo.workNum = userInfoObj.workNum
|
userInfo.workNum = userInfoObj.workNum
|
||||||
if (userInfo.userPic !== null) {
|
if (userInfo.userPic !== null) {
|
||||||
@@ -237,9 +237,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
getByUserInfoCode () {
|
getByUserInfoCode (userId) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.$http.get('person/userInfo/getByUserInfoCode', {
|
this.$http.get('person/userInfo/getByUserInfoCode?userId='+ userId, {
|
||||||
}, {
|
}, {
|
||||||
_this: this,
|
_this: this,
|
||||||
prefix: '/foton'
|
prefix: '/foton'
|
||||||
|
|||||||
Reference in New Issue
Block a user