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