Refactor navigation redirection in index and policyList pages to use parent method for external URL

This commit is contained in:
2026-04-02 10:59:02 +08:00
parent e2b26f5df8
commit bc7beb1040
2 changed files with 6 additions and 2 deletions

View File

@@ -152,7 +152,9 @@ function back() {
// uni.navigateBack({
// delta: 1
// })
window.location.href='https://www.xjksly.cn/mechine-single-vue/'
// window.location.href='https://www.xjksly.cn/mechine-single-vue/'
window.parent.changeParentLocation("https://www.xjksly.cn/mechine-single-vue/");
// uni.reLaunch({
// url: '/pages/index/index'
// })

View File

@@ -209,7 +209,9 @@ export default {
// uni.navigateBack({
// delta: 1
// })
window.location.href='https://www.xjksly.cn/mechine-single-vue/'
// window.location.href='https://www.xjksly.cn/mechine-single-vue/'
window.parent.changeParentLocation("https://www.xjksly.cn/mechine-single-vue/");
// uni.reLaunch({
// url: '/pages/index/index'
// })