diff --git a/packages/uni-app-plus/dist/uni-app-service.es.js b/packages/uni-app-plus/dist/uni-app-service.es.js index 3d3ee55e0aea91732d2725143a4e3d09b51d11bc..1627c8c190ee9057e5c3f8ac918b7803e04cc391 100644 --- a/packages/uni-app-plus/dist/uni-app-service.es.js +++ b/packages/uni-app-plus/dist/uni-app-service.es.js @@ -2678,13 +2678,6 @@ var serviceContext = (function (vue) { function getEnterOptions() { return enterOptions; } - function initEnterOptions({ path, query, referrerInfo, }) { - extend(enterOptions, { - path, - query: query ? parseQuery(query) : {}, - referrerInfo: referrerInfo || {}, - }); - } function initLaunchOptions({ path, query, referrerInfo, }) { extend(launchOptions, { path, @@ -18577,11 +18570,12 @@ var serviceContext = (function (vue) { emit(ON_APP_ENTER_BACKGROUND); }); plusGlobalEvent.addEventListener('resume', () => { - const info = parseRedirectInfo(); - if (info && info.userAction && info.path) { - initEnterOptions(info); - initEnterReLaunch(info); - } + // TODO 暂时不用 + // const info = parseRedirectInfo() + // if (info && info.userAction && info.path) { + // initEnterOptions(info) + // initEnterReLaunch(info) + // } emit(ON_APP_ENTER_FOREGROUND, getEnterOptions()); }); weexGlobalEvent.addEventListener('uistylechange', function (event) { @@ -18614,13 +18608,6 @@ var serviceContext = (function (vue) { } function onPlusMessage(type, callback, once = false) { UniServiceJSBridge.subscribe('plusMessage.' + type, callback, once); - } - function initEnterReLaunch(info) { - __uniConfig.realEntryPagePath = - __uniConfig.realEntryPagePath || __uniConfig.entryPagePath; - __uniConfig.entryPagePath = info.path; - __uniConfig.entryPageQuery = info.query; - $reLaunch({ url: addLeadingSlash(info.path) + info.query }, { resolve() { }, reject() { } }); } function initAppLaunch(appVm) { diff --git a/packages/uni-app-plus/src/service/framework/app/initGlobalEvent.ts b/packages/uni-app-plus/src/service/framework/app/initGlobalEvent.ts index c11308a93e498855896b921fde1e2ae6a375edb2..82b5fcb30e008f10aa240d6f2b2caebc1e22cd27 100644 --- a/packages/uni-app-plus/src/service/framework/app/initGlobalEvent.ts +++ b/packages/uni-app-plus/src/service/framework/app/initGlobalEvent.ts @@ -10,8 +10,6 @@ import { $reLaunch } from '../../api/route/_reLaunch' import { EVENT_BACKBUTTON, backbuttonListener, - parseRedirectInfo, - initEnterOptions, getEnterOptions, RedirectInfo, } from './utils' @@ -34,11 +32,12 @@ export function initGlobalEvent() { }) plusGlobalEvent.addEventListener('resume', () => { - const info = parseRedirectInfo() - if (info && info.userAction && info.path) { - initEnterOptions(info) - initEnterReLaunch(info) - } + // TODO 暂时不用 + // const info = parseRedirectInfo() + // if (info && info.userAction && info.path) { + // initEnterOptions(info) + // initEnterReLaunch(info) + // } emit(ON_APP_ENTER_FOREGROUND, getEnterOptions()) })