From 3a221bbd85ab8c365f6c68b05c79f78c3a940e9b Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Fri, 21 Jun 2024 15:22:14 +0800 Subject: [PATCH] =?UTF-8?q?tt-activity=20token=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/tt-activity/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/tt-activity/index.vue b/src/pages/tt-activity/index.vue index baa7422..a8b02f8 100644 --- a/src/pages/tt-activity/index.vue +++ b/src/pages/tt-activity/index.vue @@ -199,7 +199,11 @@ export default { }, onLoad(options) { // eslint-disable-next-line camelcase - const { activity_code } = this.getUrlParams() + const { activity_code, token } = this.getUrlParams() + const useStore = useUserStore() + if (token) { + useStore.setUserInfo({ token }) + } // eslint-disable-next-line camelcase this.activity_code = activity_code || 'TT1234' // const token = 'eb1272c9c7e5f5032e75aa76222f63ae91'