提交 3d8feaab 编写于 作者: D DCloud_LXH

fix(upgrade-center): 修复 ts 类型检测

上级 21adee5c
......@@ -228,7 +228,7 @@
.sort((cur: StoreListItem, next: StoreListItem): number => next.priority - cur.priority)
.map((item: StoreListItem): string => item.scheme)
.reduce((promise: Promise<boolean>, cur: string): Promise<boolean> => {
openSchemePromise = promise.catch((): Promise<boolean> => openSchema(cur))
openSchemePromise = promise.catch<boolean>((): Promise<boolean> => openSchema(cur))
return openSchemePromise!
}, openSchemePromise!)
return openSchemePromise!
......
......@@ -177,7 +177,7 @@ function updateUseModal(packageInfo : UniUpgradeCenterResult) : void {
fail: err => {
uni.showModal({
title: '更新失败',
content: err.message,
content: err.errMsg,
showCancel: false
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册