replace
This commit is contained in:
parent
f7aafd3f7f
commit
54baf57e87
|
@ -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: {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue