提交 6407f026 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 fe9dcb09
......@@ -18085,13 +18085,10 @@ const navigateBack = defineAsyncApi(API_NAVIGATE_BACK, (args, { resolve, reject
else if (isDirectPage(page)) {
reLaunchEntryPage();
}
else if (args) {
else {
const { delta, animationType, animationDuration } = args;
back(delta, animationType, animationDuration);
}
else {
back();
}
return resolve();
}, NavigateBackProtocol, NavigateBackOptions);
let firstBackTime = 0;
......@@ -18108,7 +18105,7 @@ function quit() {
plus.runtime.quit();
}
}
function back(delta = 1, animationType, animationDuration) {
function back(delta, animationType, animationDuration) {
const pages = getCurrentPages();
const len = pages.length;
const currentPage = pages[len - 1];
......
......@@ -18735,7 +18735,7 @@ const navigateBack = /* @__PURE__ */ defineAsyncApi(API_NAVIGATE_BACK, (args, {
if (!canBack) {
return reject(ON_BACK_PRESS);
}
getApp().$router.go(args && args.delta ? -args.delta : -1);
getApp().$router.go(-args.delta);
return resolve();
}, NavigateBackProtocol, NavigateBackOptions);
function navigate({ type, url, events }, __id__) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册