From bc7beb10405d2f265d6658c7499f62972924f34c Mon Sep 17 00:00:00 2001 From: shirlwang <15254118591@163.com> Date: Thu, 2 Apr 2026 10:59:02 +0800 Subject: [PATCH] Refactor navigation redirection in index and policyList pages to use parent method for external URL --- packageRc/pages/index/index.vue | 4 +++- packageRc/pages/policy/policyList.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packageRc/pages/index/index.vue b/packageRc/pages/index/index.vue index e4fb885..8ccbeed 100644 --- a/packageRc/pages/index/index.vue +++ b/packageRc/pages/index/index.vue @@ -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' // }) diff --git a/packageRc/pages/policy/policyList.vue b/packageRc/pages/policy/policyList.vue index 64da886..b6e4f99 100644 --- a/packageRc/pages/policy/policyList.vue +++ b/packageRc/pages/policy/policyList.vue @@ -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' // })