diff --git a/src/core/service/plugins/app/index.js b/src/core/service/plugins/app/index.js index 8596bda3a0a783c5292ce2d7155bbdf00a085e51..08461afb595b1924373e22f11f5c80c72b4b14b6 100644 --- a/src/core/service/plugins/app/index.js +++ b/src/core/service/plugins/app/index.js @@ -31,10 +31,13 @@ export function createAppMixin (routes, entryRoute) { }, mounted: function appMounted () { // 稍微靠后点,让 App 有机会在 mounted 事件前注册一些全局事件监听,如 UI 显示(showModal) - callAppHook(this, 'onLaunch', { + const args = { + path: this.$route.meta && this.$route.meta.pagePath, + query: this.$route.query, scene: 1001 - }) - callAppHook(this, 'onShow', {}) + } + callAppHook(this, 'onLaunch', args) + callAppHook(this, 'onShow', args) } } }