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 request from './utils/request';
import { import {
getToken, getToken,
setTenantId setTenantId
} from '@/utils/auth' } from '@/utils/auth'
import { import {
getTenantIdByWebsite getTenantIdByWebsite
} from '@/api/login.js' } from '@/api/login.js'
export default { export default {
onLaunch: function() { onLaunch: function() {
@ -23,13 +23,15 @@
} }
let version = config.appInfo.version let version = config.appInfo.version
request({ request({
url: '/system/config/configKey/rescueUserVersion', url: '/system/config/configKey/rescueUserVersion',
method: 'get', method: 'get',
params: '' params: ''
}).then(res => { }).then(res => {
console.log('rescueUserVersion', 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); console.log(res);
uni.showModal({ uni.showModal({
title: '版本升级', title: '版本升级',
@ -114,4 +116,4 @@
body { body {
height: 100%; height: 100%;
} }
</style> </style>