Skip to content

Commit

Permalink
fix(cli): update errorMsg (#15419)
Browse files Browse the repository at this point in the history
* Update index.ts

* Update index.ts
  • Loading branch information
LesterWeng authored Apr 1, 2024
1 parent 4153b76 commit 93e47bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/taro-h5/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 93e47bc

Please sign in to comment.