From ab3f674a84c439489d7620ce2d0a00dfb2331ce1 Mon Sep 17 00:00:00 2001 From: Janie <109517022+Janie06@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=A5=E9=87=8D=E6=96=B0=E8=A8=BB=E5=86=8A?= =?UTF-8?q?=E6=9C=83=E5=93=A1=EF=BC=8C=E5=88=AA=E9=99=A4cookie=E5=85=A7?= =?UTF-8?q?=E7=9A=84=E5=B8=B3=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontEnd/pages/user/signUp.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/FrontEnd/pages/user/signUp.vue b/FrontEnd/pages/user/signUp.vue index 38b659b..176f704 100644 --- a/FrontEnd/pages/user/signUp.vue +++ b/FrontEnd/pages/user/signUp.vue @@ -189,10 +189,24 @@ export default { Account: "", Password: "", Email: "", - Subscribe: true + Subscribe: true, }, + signUp: false, }; }, + watch: { + signUp: { + handler: function () { + if (this.signUp == true) { + this.$auth.$storage.removeUniversal("userPassword"); + this.$auth.$storage.removeUniversal("userAccount"); + console.log("帳號: " + this.$auth.$storage.getUniversal('userAccount')); + console.log("密碼: " + this.$auth.$storage.getUniversal('userPassword')); + console.log("都給我刪掉"); + } + }, + }, + }, methods: { userRegister() { const postUserData = { ...this.userData }; @@ -202,6 +216,7 @@ export default { `/trending/api/Signup/SignupWithEmail`, postUserData ) .then((response) => { + //console.log(JSON.stringify(response)); if(response.data.STATUSCODE == "400"){ this.errorDialog = true; @@ -210,6 +225,7 @@ export default { if(response && response.data && response.data.DATA && response.data.DATA.rel){ let data = response.data.DATA.rel if(data){ + this.signUp = true; this.timer = setInterval(() => { if (this.countdown > 0) { this.countdown--; @@ -218,6 +234,7 @@ export default { clearInterval(this.timer); } }, 1000); + console.log("pageloading:" + this.isPageLoading); this.isPageLoading = false; this.dialog = !this.dialog; }