From ab41262326d028d0e7b6b83ed48eb013cdd9f761 Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Tue, 17 May 2022 11:48:39 +0800 Subject: [PATCH] =?UTF-8?q?fixbug:=20=E4=BF=AE=E5=A4=8Dbug1239?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/account/index/userInfo.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/account/index/userInfo.vue b/pages/account/index/userInfo.vue index e00f4a5..ae11a02 100644 --- a/pages/account/index/userInfo.vue +++ b/pages/account/index/userInfo.vue @@ -92,8 +92,17 @@ export default { computed: { ...mapState(["userInfo", "token"]), }, + watch: { + userInfo: { + deep: true, + handler(val) { + if (val && Object.keys(val).length > 0) { + this.initData(); + } + }, + }, + }, created() { - this.initData(); this.getOssConfig(); }, methods: {