Skip to content

Commit

Permalink
chore: build uni-app-harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Sep 19, 2024
1 parent 8f639aa commit 03437a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/uni-app-harmony/dist/uni.runtime.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13104,8 +13104,9 @@ const navigateBack = defineAsyncApi(API_NAVIGATE_BACK, (args, { resolve, reject
if (!page) {
return reject(`getCurrentPages is empty`);
}
const from = args.from || 'navigateBack';
if (invokeHook(page, ON_BACK_PRESS, {
from: args.from || 'navigateBack',
from,
})) {
return resolve();
}
Expand All @@ -13123,7 +13124,7 @@ const navigateBack = defineAsyncApi(API_NAVIGATE_BACK, (args, { resolve, reject
}
else {
const { delta, animationType, animationDuration } = args;
back(delta, animationType, animationDuration);
back(delta, animationType, animationDuration, from);
}
return resolve();
}, NavigateBackProtocol, NavigateBackOptions);
Expand All @@ -13141,7 +13142,7 @@ function quit() {
plus.runtime.quit();
}
}
function back(delta, animationType, animationDuration) {
function back(delta, animationType, animationDuration, from) {
const pages = getCurrentPages();
const len = pages.length;
const currentPage = pages[len - 1];
Expand Down Expand Up @@ -13175,7 +13176,7 @@ function back(delta, animationType, animationDuration) {
invokeHook(ON_SHOW);
};
const webview = plus.webview.getWebviewById(currentPage.$page.id + '');
if (!currentPage.__uniapp_webview) {
if (!currentPage.__uniapp_webview || from === 'navigateBack') {
return backPage(webview);
}
backWebview(webview, () => {
Expand Down

0 comments on commit 03437a8

Please sign in to comment.