|
@@ -6,7 +6,7 @@ import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'
|
|
|
onLaunch((options) => {
|
|
onLaunch((options) => {
|
|
|
// 处理直接进入页面路由的情况:如h5直接输入路由、微信小程序分享后进入等
|
|
// 处理直接进入页面路由的情况:如h5直接输入路由、微信小程序分享后进入等
|
|
|
// https://github.com/unibest-tech/unibest/issues/192
|
|
// https://github.com/unibest-tech/unibest/issues/192
|
|
|
- console.log('App Launch', options?.path)
|
|
|
|
|
|
|
+ console.log('App Launch', options)
|
|
|
if (options?.path) {
|
|
if (options?.path) {
|
|
|
navigateToInterceptor.invoke({ url: `/${options.path}` })
|
|
navigateToInterceptor.invoke({ url: `/${options.path}` })
|
|
|
}
|
|
}
|
|
@@ -14,8 +14,8 @@ onLaunch((options) => {
|
|
|
navigateToInterceptor.invoke({ url: '/' })
|
|
navigateToInterceptor.invoke({ url: '/' })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
-onShow(() => {
|
|
|
|
|
- console.log('App Show')
|
|
|
|
|
|
|
+onShow((options) => {
|
|
|
|
|
+ console.log('App Show', options)
|
|
|
})
|
|
})
|
|
|
onHide(() => {
|
|
onHide(() => {
|
|
|
console.log('App Hide')
|
|
console.log('App Hide')
|