diff --git a/App.vue b/App.vue index e2bfc31..4b58a71 100644 --- a/App.vue +++ b/App.vue @@ -3,11 +3,11 @@ import request from './utils/request'; import { getToken, - setTenantId + setTenantId } from '@/utils/auth' - import { - getTenantIdByWebsite - } from '@/api/login.js' + import { + getTenantIdByWebsite + } from '@/api/login.js' export default { onLaunch: function() { @@ -23,13 +23,15 @@ } let version = config.appInfo.version + request({ url: '/system/config/configKey/rescueUserVersion', method: 'get', params: '' }).then(res => { console.log('rescueUserVersion', res); - if (res.code == 200 && res.msg && res.msg != version) { + + if (res.code == 200 && res.data && res.data != version) { console.log(res); uni.showModal({ title: '版本升级', @@ -114,4 +116,4 @@ body { height: 100%; } - + \ No newline at end of file