From 110695c03d532cccd3585cd6ce263d89fd545abb Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 29 Sep 2022 15:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiLogin/AiLogin.vue | 5 +---- src/components/utils/util.js | 3 +++ src/project/pingchang/AppGetewayRegister/getewayAdd.vue | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/AiLogin/AiLogin.vue b/src/components/AiLogin/AiLogin.vue index bdb6da9..d18c2c7 100644 --- a/src/components/AiLogin/AiLogin.vue +++ b/src/components/AiLogin/AiLogin.vue @@ -25,12 +25,9 @@ export default { methods: { ...mapActions(['autoLogin']), show() { - tools.$getUserProfile().then(data => { - this.userData = data.userInfo; - this.userPhoneShow = true; - }) tools.$getLoginCode().then(res => { this.code = res.code; + this.userPhoneShow = true; }) }, hide() { diff --git a/src/components/utils/util.js b/src/components/utils/util.js index 0e64b74..d7ddc2a 100644 --- a/src/components/utils/util.js +++ b/src/components/utils/util.js @@ -91,6 +91,9 @@ const $getUserProfile = () => { lang: 'zh_CN', success: (data) => { resolve(data); + }, + fail: (err)=> { + console.log(err); } }); }); diff --git a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue index fce6e9c..2c9dec5 100644 --- a/src/project/pingchang/AppGetewayRegister/getewayAdd.vue +++ b/src/project/pingchang/AppGetewayRegister/getewayAdd.vue @@ -303,6 +303,7 @@