fix(components): 用户信息接口调整
This commit is contained in:
parent
8fc8c56e80
commit
4a93f838f3
@ -107,13 +107,7 @@ export default {
|
|||||||
getData() {
|
getData() {
|
||||||
let _ts = this;
|
let _ts = this;
|
||||||
_ts.$axios.$get('/api/user-info/detail/' + _ts.idUser).then(function (res) {
|
_ts.$axios.$get('/api/user-info/detail/' + _ts.idUser).then(function (res) {
|
||||||
if (res) {
|
_ts.$set(_ts, 'user', res);
|
||||||
if (res.message) {
|
|
||||||
_ts.$message.error(res.message);
|
|
||||||
} else {
|
|
||||||
_ts.$set(_ts, 'user', res.user);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
hideChangeEmailDialog() {
|
hideChangeEmailDialog() {
|
||||||
|
Loading…
Reference in New Issue
Block a user