From 93e47bcb8a73ea0e7cb7da8a033e415aab5c1ee0 Mon Sep 17 00:00:00 2001 From: Lix Date: Mon, 1 Apr 2024 10:04:18 +0800 Subject: [PATCH] fix(cli): update errorMsg (#15419) * Update index.ts * Update index.ts --- packages/taro-h5/src/utils/index.ts | 2 +- .../taro-platform-harmony-hybrid/src/api/apis/utils/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro-h5/src/utils/index.ts b/packages/taro-h5/src/utils/index.ts index dc65dc713e27..c7008dadbb5b 100644 --- a/packages/taro-h5/src/utils/index.ts +++ b/packages/taro-h5/src/utils/index.ts @@ -25,7 +25,7 @@ export function findDOM (inst?): TaroElement | HTMLElement | undefined { const page = Current.page const path = page?.path - const msg = '没有找到已经加载了的页面,请在页面加载完成后时候此 API。' + const msg = '没有找到已经加载了的页面,请在页面加载完成后使用此 API。' if (path == null) { throw new Error(msg) } diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/utils/index.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/utils/index.ts index 972bcd1562b8..ae1af2a14e56 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/utils/index.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/utils/index.ts @@ -34,7 +34,7 @@ export function findDOM (inst?): TaroElement | HTMLElement | undefined { const page = Current.page const path = page?.path - const msg = '没有找到已经加载了的页面,请在页面加载完成后时候此 API。' + const msg = '没有找到已经加载了的页面,请在页面加载完成后使用此 API。' if (path == null) { throw new Error(msg) }