tianyi 4 weeks ago
parent
commit
f95be17b57
  1. 9
      App.vue

9
App.vue

@ -69,18 +69,11 @@
const baseUrl = getApp().globalData.mainurl
//
// #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
// version: widgetInfo.version,
// name: widgetInfo.name
uni.request({
url: baseUrl + '/setting/app-update/latest',
data: {},
success: (res) => {
var data = res.data.result;
// if(data.version == widgetInfo.version){
if (data.url) {
uni.downloadFile({
url: data.url,
@ -98,10 +91,8 @@
}
});
}
// }
}
});
});
// #endif
this.globalData._i18n = this.$i18n //$i18n
this.globalData.$t = function(str) {

Loading…
Cancel
Save