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

9
App.vue

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

Loading…
Cancel
Save