From 47e824a0ebf0472c019084293d4af9bbe8cc8efb Mon Sep 17 00:00:00 2001 From: weichengwu Date: Thu, 20 Nov 2025 10:46:18 +0800 Subject: [PATCH] update wechat token --- src/pages/index/index.vue | 4 ++-- src/pages/index/index_old.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f5ec107..29355a2 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -132,7 +132,7 @@ const number = ref("00000"); const num = ref("00000"); const fontSize = ref(0); const rollingTextRef = ref(null); -const currentUrl = ref(encodeURIComponent(window.location.href.split("#")[0])); +const currentUrl = ref(window.location.href.split("#")[0]); const form = reactive({ receiveMobile: "", smsCode: "", @@ -209,7 +209,7 @@ function getNumber() { const initWechatConfig = async () => { try { const response = await wechatConfig({ - url: decodeURIComponent(currentUrl.value), + url: currentUrl.value, }); // const config = await response.json(); if (response.code == 200) { diff --git a/src/pages/index/index_old.vue b/src/pages/index/index_old.vue index 9cf16d5..a4a413c 100644 --- a/src/pages/index/index_old.vue +++ b/src/pages/index/index_old.vue @@ -128,7 +128,7 @@ const number = ref("00000"); const num = ref("00000"); const fontSize = ref(0); const rollingTextRef = ref(null); -const currentUrl = ref(encodeURIComponent(window.location.href.split("#")[0])); +const currentUrl = ref(window.location.href.split("#")[0]); const form = reactive({ receiveMobile: "", smsCode: "", @@ -202,7 +202,7 @@ function getNumber() { const initWechatConfig = async () => { try { const response = await wechatConfig({ - url: decodeURIComponent(currentUrl.value), + url: currentUrl.value, }); // const config = await response.json(); if (response.code == 200) {