Browse Source

修改升级

hella_vue3
lijuncheng 7 months ago
parent
commit
29284fb824
  1. 4
      src/common/appUpdate.js
  2. 4
      src/manifest.json

4
src/common/appUpdate.js

@ -18,7 +18,7 @@ export function appUpdate(isShowHint) {
console.log("获取更新数据", json)
if (res.data) {
if (res.data.installPackageVersion > Number(curversion)) {
var downUrl = res.data.downUrl;
var downUrl = res.data.installPackageUrl;
var content = res.data.updateContent;
var version = res.data.installPackageVersion;
var isForcedUpdate = res.data.isForcedUpdate
@ -77,7 +77,7 @@ export function showDialog(versionName, content, isForcedUpdate, downUrl) {
console.log(
'cancel') //点击取消之后执行的代码
if (isForcedUpdate == "TRUE") {
showDialog(version, content, isForcedUpdate, downUrl)
showDialog(versionName, content, isForcedUpdate, downUrl)
}
}
}

4
src/manifest.json

@ -45,7 +45,9 @@
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
"<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 23
},

Loading…
Cancel
Save