fix(components): 用户信息接口调整

This commit is contained in:
ronger 2024-02-20 19:14:38 +08:00
parent 8fc8c56e80
commit 4a93f838f3

View File

@ -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() {