From 87ca7eb157f8bf407da8313e3adc51f7b9ab9805 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 29 Jan 2024 13:26:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(getLaunchOptionsSync):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API/get-launch-options-sync/get-launch-options-sync.uvue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/API/get-launch-options-sync/get-launch-options-sync.uvue b/pages/API/get-launch-options-sync/get-launch-options-sync.uvue index 7e1d5a3a..45ddd7f7 100644 --- a/pages/API/get-launch-options-sync/get-launch-options-sync.uvue +++ b/pages/API/get-launch-options-sync/get-launch-options-sync.uvue @@ -14,7 +14,7 @@ export default { data() { return { checked: false, - homePagePath: '/pages/tabBar/component', + homePagePath: 'pages/tabBar/component', launchOptionsPath: '', } }, @@ -22,7 +22,8 @@ export default { getLaunchOptionsSync() { const launchOptions = uni.getLaunchOptionsSync() this.launchOptionsPath = launchOptions.path - if (launchOptions.path === this.homePagePath || `/${launchOptions.path}` === this.homePagePath) { + + if (launchOptions.path == this.homePagePath) { this.checked = true } }, -- GitLab