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 7e1d5a3aefc22538f15aa4bc9a1396becaceea52..45ddd7f724b86c030669e7b83ad02a8c39586a1e 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 } },