This commit is contained in:
lf 2024-07-25 10:04:17 +08:00
parent f7aafd3f7f
commit 54baf57e87
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export default defineManifestConfig({
locale: VITE_FALLBACK_LOCALE, // 'zh-Hans' locale: VITE_FALLBACK_LOCALE, // 'zh-Hans'
h5: { h5: {
router: { router: {
// mode: 'history', mode: 'history',
base: VITE_APP_PUBLIC_BASE, base: VITE_APP_PUBLIC_BASE,
}, },
optimization: { optimization: {

View File

@ -100,7 +100,8 @@ window.parent.addEventListener('message', function (event) {
srcList.title = contentData.user_content_templates.moduledesc srcList.title = contentData.user_content_templates.moduledesc
break break
case 'location': case 'location':
window.location.href = event.data.data.url // window.location.href = event.data.data.url
window.location.replace(event.data.data.url)
break break
case 'product': case 'product':
// eslint-disable-next-line no-case-declarations // eslint-disable-next-line no-case-declarations