From a302f11b95d0af142844d15ad612223cee199865 Mon Sep 17 00:00:00 2001 From: linxi Date: Wed, 27 Nov 2024 09:26:00 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2697=20=E3=80=90=E5=9C=B0=E6=A0=87?= =?UTF-8?q?=E5=A5=BD=E7=89=A9=E3=80=91=E6=89=AB=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=9B=B4=E6=8E=A5=E8=BF=9B=E5=85=A5=E7=9B=B8?= =?UTF-8?q?=E5=BA=94=E7=9A=84=E7=9C=81=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/landMark.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/home/landMark.vue b/pages/home/landMark.vue index cb0199e..b958f56 100644 --- a/pages/home/landMark.vue +++ b/pages/home/landMark.vue @@ -125,7 +125,10 @@ export default { return this.navList[this.navIndex] ? this.navList[this.navIndex]['id'] : null } }, - onLoad() { + onLoad(opts) { + if(opts && opts.id) { + this.navIndex = navList.map(e => +e.id).indexOf(+opts.id) + } this.getNavList() }, onHide() {