Browse Source

fix: SBBJ-837app自动更新

master
zengqinyuan 2 months ago
parent
commit
244b91cc7b
  1. 4
      src/App.vue
  2. 2
      src/api/appInfo.ts

4
src/App.vue

@ -23,8 +23,8 @@
// store
const store = useCountStore()
appUpdate(fasle);
/* onLaunch(async () => {
*/ // #ifdef MP-WEIXIN
onLaunch(async () => {
// #ifdef MP-WEIXIN
if (uni.canIUse('getUpdateManager')) {
const updateManager = uni.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {

2
src/api/appInfo.ts

@ -2,5 +2,5 @@ import http from './http'
// 新增申领备件时获取备件列表
export function appCheckUpdate() {
return http.get('/eam/system-install-package/downloadApk')
return http.get('/eam/system-install-package/returnNewFile')
}
Loading…
Cancel
Save