From 00b646c7098d8ecebe9ea9b0790566985f467433 Mon Sep 17 00:00:00 2001 From: kongxiaojun Date: Wed, 10 Jul 2024 20:07:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[harmony-hybrid]=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/apis/navigate/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/navigate/index.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/navigate/index.ts index fd5b159a58c9..2fd39e301247 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/navigate/index.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/navigate/index.ts @@ -1,8 +1,8 @@ import Taro from '@tarojs/api' -import { navigateTo as navigateToH5 } from '@tarojs/taro-h5' -import native from '../NativeApi' import { navigateBack as navigateBackH5, navigateTo as navigateToH5 } from '@tarojs/taro-h5' +import native from '../NativeApi' + function getFromParameter (from: string|undefined): number { let number: number = -1 if (from) { @@ -45,7 +45,8 @@ export function exitMiniProgram (option?: any) { native.exitMiniProgram(option) } -* 关闭当前页面,返回上一页面或多级页面。 +/** + * 关闭当前页面,返回上一页面或多级页面。 * * @canUse navigateBack * @__object [delta]