From 83197c3c5d4506fba1eaa0fff11a886bf8ff1d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Thu, 7 Nov 2024 09:53:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/activate.vue | 4 +++- src/views/login/userRegister.vue | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/login/activate.vue b/src/views/login/activate.vue index 15c2388..0039484 100644 --- a/src/views/login/activate.vue +++ b/src/views/login/activate.vue @@ -27,7 +27,9 @@ export default { }, created() { let token = this.$route.query.token; - this.$TOOL.cookie.set("TOKEN", token) + if(token){ + this.$TOOL.cookie.set("TOKEN", token) + } }, mounted() { diff --git a/src/views/login/userRegister.vue b/src/views/login/userRegister.vue index 32e76e7..68bce3b 100644 --- a/src/views/login/userRegister.vue +++ b/src/views/login/userRegister.vue @@ -1,6 +1,6 @@