From 0f789971e8b13341e46c1544c54cfd51cf48a414 Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:37:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E6=9C=83=E5=93=A1edit=20Personal=20I?= =?UTF-8?q?nfo=20=E4=B8=8A=E5=82=B3=E9=A0=AD=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上傳頭像成功後再打一次get Member Info API並顯示修改成功 --- FrontEnd/locales/zh-tw.json | 4 +++- FrontEnd/pages/user/editPersonalInfo.vue | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/FrontEnd/locales/zh-tw.json b/FrontEnd/locales/zh-tw.json index d040970..609c931 100644 --- a/FrontEnd/locales/zh-tw.json +++ b/FrontEnd/locales/zh-tw.json @@ -492,7 +492,9 @@ "Notice Details": "備註", "Notice": "備註", "Payment Details": "付款詳細資訊", - "Banking Details": "銀行帳戶資訊" + "Banking Details": "銀行帳戶資訊", + "Add Contact": "新增聯絡資訊" + diff --git a/FrontEnd/pages/user/editPersonalInfo.vue b/FrontEnd/pages/user/editPersonalInfo.vue index c92a385..1ba9fd5 100644 --- a/FrontEnd/pages/user/editPersonalInfo.vue +++ b/FrontEnd/pages/user/editPersonalInfo.vue @@ -485,8 +485,11 @@ export default { if(response && response.data){ this.isCropImageDialogActive = !this.isCropImageDialogActive; - this.patchUserData(); - + this.fetchUserData(); + this.$notify({ + type: "success", + text: "更新成功", + }); } }) .catch((error) => { From 48791163f5093fce854b4181cb40cffb39dd41d6 Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Thu, 9 Mar 2023 09:48:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20=E7=99=BB=E5=85=A5Remember=20me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remember me功能增加判斷,若有儲存帳密checkbok = true,反之checkbok = false --- FrontEnd/pages/user/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/FrontEnd/pages/user/index.vue b/FrontEnd/pages/user/index.vue index 595336d..75242e5 100644 --- a/FrontEnd/pages/user/index.vue +++ b/FrontEnd/pages/user/index.vue @@ -191,8 +191,18 @@ }, }, }, - + created(){ + + }, mounted(){ + if(this.$auth.$storage.getUniversal('userAccount') && this.$auth.$storage.getUniversal('userPassword')){ + this.remember = true; + + }else{ + this.remember = false; + + } + var userAccount = this.$auth.$storage.getUniversal('userAccount'); var userPassword = this.$auth.$storage.getUniversal('userPassword');