Browse Source

修改返回首页逻辑;

songjie/feature-20250628160649-上线前优化
宋杰 3 weeks ago
parent
commit
43baa81efa
  1. 10
      src/views/components/BackToHomeButton.vue
  2. 10
      src/views/homePage.vue

10
src/views/components/BackToHomeButton.vue

@ -44,9 +44,13 @@ const backToHome = () => {
window.parent.location.href = window.parent.location.href =
"http://121.89.234.155:8807/hljw/homepage?menu=999999991"; "http://121.89.234.155:8807/hljw/homepage?menu=999999991";
} else { } else {
window.parent.location.href =
"https://web.homilychart.com/product/hljw/homepage?token=" +
encodeURIComponent(localStorage.getItem("localToken"));
window.parent.postMessage(
{
type: 'NAVIGATE_TO_HOMEPAGE',
menu: '999999991'
},
'*'
)
} }
} }
}; };

10
src/views/homePage.vue

@ -935,9 +935,13 @@ const backToHome = () => {
window.parent.location.href = window.parent.location.href =
"http://121.89.234.155:8807/hljw/homepage?menu=999999991"; "http://121.89.234.155:8807/hljw/homepage?menu=999999991";
} else { } else {
window.parent.location.href =
"https://web.homilychart.com/product/hljw/homepage?token=" +
encodeURIComponent(localStorage.getItem("localToken"));
window.parent.postMessage(
{
type: 'NAVIGATE_TO_HOMEPAGE',
menu: '999999991'
},
'*'
)
} }
// window.parent.location.href = window.parent.document.referrer // window.parent.location.href = window.parent.document.referrer
} }

Loading…
Cancel
Save