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) {