From 3d8feaab7257f7b21b976c8f6fd539a2cf352882 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 31 Jul 2024 13:41:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(upgrade-center):=20=E4=BF=AE=E5=A4=8D=20ts?= =?UTF-8?q?=20=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-upgrade-center-app/uni-upgrade-center-app.uvue | 2 +- uni_modules/uni-upgrade-center-app/utils/check-update.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue b/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue index 14e42e0c..defda473 100644 --- a/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue +++ b/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue @@ -228,7 +228,7 @@ .sort((cur: StoreListItem, next: StoreListItem): number => next.priority - cur.priority) .map((item: StoreListItem): string => item.scheme) .reduce((promise: Promise, cur: string): Promise => { - openSchemePromise = promise.catch((): Promise => openSchema(cur)) + openSchemePromise = promise.catch((): Promise => openSchema(cur)) return openSchemePromise! }, openSchemePromise!) return openSchemePromise! diff --git a/uni_modules/uni-upgrade-center-app/utils/check-update.ts b/uni_modules/uni-upgrade-center-app/utils/check-update.ts index bbaed13f..d8ecf2d2 100644 --- a/uni_modules/uni-upgrade-center-app/utils/check-update.ts +++ b/uni_modules/uni-upgrade-center-app/utils/check-update.ts @@ -177,7 +177,7 @@ function updateUseModal(packageInfo : UniUpgradeCenterResult) : void { fail: err => { uni.showModal({ title: '更新失败', - content: err.message, + content: err.errMsg, showCancel: false }); } -- GitLab