This commit is contained in:
Lx 2025-08-07 11:35:54 +08:00
parent 88ff200164
commit 51083b0f48

14
App.vue
View File

@ -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%;
}
</style>
</style>