From 4a93f838f3f4cbf6f3f0f613950491c4e005d7b2 Mon Sep 17 00:00:00 2001 From: ronger Date: Tue, 20 Feb 2024 19:14:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(components):=20=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/settings/security.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pages/user/settings/security.vue b/pages/user/settings/security.vue index 0d2dec7..9755c64 100644 --- a/pages/user/settings/security.vue +++ b/pages/user/settings/security.vue @@ -107,13 +107,7 @@ export default { getData() { let _ts = this; _ts.$axios.$get('/api/user-info/detail/' + _ts.idUser).then(function (res) { - if (res) { - if (res.message) { - _ts.$message.error(res.message); - } else { - _ts.$set(_ts, 'user', res.user); - } - } + _ts.$set(_ts, 'user', res); }) }, hideChangeEmailDialog() {