From 54baf57e87546b8460ae46649c55249e9597a482 Mon Sep 17 00:00:00 2001 From: lf <1534621107@qq.com> Date: Thu, 25 Jul 2024 10:04:17 +0800 Subject: [PATCH] replace --- manifest.config.ts | 2 +- src/pages/index/index.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.config.ts b/manifest.config.ts index e1a7c53..97a0c69 100644 --- a/manifest.config.ts +++ b/manifest.config.ts @@ -24,7 +24,7 @@ export default defineManifestConfig({ locale: VITE_FALLBACK_LOCALE, // 'zh-Hans' h5: { router: { - // mode: 'history', + mode: 'history', base: VITE_APP_PUBLIC_BASE, }, optimization: { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 6ad2511..9a12f2e 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -100,7 +100,8 @@ window.parent.addEventListener('message', function (event) { srcList.title = contentData.user_content_templates.moduledesc break case 'location': - window.location.href = event.data.data.url + // window.location.href = event.data.data.url + window.location.replace(event.data.data.url) break case 'product': // eslint-disable-next-line no-case-declarations