提交 e303f016 编写于 作者: D DCloud_LXH

fix(升级中心): 运行到 uni-app x 项目时条件编译 APP-PLUS -> APP

上级 8c72f8e8
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
}, },
installPackage() { installPackage() {
this.installing = true; this.installing = true;
// #ifdef APP-PLUS // #ifdef APP
uni.installApk({ uni.installApk({
filePath: this.tempFilePath, filePath: this.tempFilePath,
success: _ => { success: _ => {
......
...@@ -111,7 +111,7 @@ export default function () : Promise<UniUpgradeCenterResult> { ...@@ -111,7 +111,7 @@ export default function () : Promise<UniUpgradeCenterResult> {
// #endif // #endif
}) })
// #endif // #endif
// #ifndef APP-PLUS // #ifndef APP
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
reject({ reject({
message: '请在App中使用' message: '请在App中使用'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册