This commit is contained in:
PQZ 2024-08-28 16:11:27 +08:00
parent dfde436c03
commit 03d6a5fd08
3 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,8 @@
// 应用全局配置
module.exports = {
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
baseUrl: 'http://192.168.1.18:48080/admin-api',
//baseUrl: 'https://www.nuoyunr.com/jx',
baseUrl: 'https://www.nuoyunr.com/jx',
imagesUrl: 'https://www.nuoyunr.com/jx',
//baseUrl: 'http://192.168.31.54:8016/jx',
//baseUrl: 'http://192.168.31.54:8016/jx',

View File

@ -169,7 +169,7 @@
url: '/getJxInfo',
method: 'get'
}).then((res) => {
if (res.code == 0) {
if (res.code == 200) {
this.schoolInfo = res.schoolInfo
uni.setStorageSync("roles", res.roles)
uni.setStorageSync("deptId", res.schoolInfo.deptId)
@ -181,7 +181,7 @@
url: '/drivingSchool/system/reservationCourse/applet/getHomeData',
method: 'get'
}).then((res) => {
if (res.code == 0) {
if (res.code == 200) {
this.dataInfo = res.data
}
})

View File

@ -17,7 +17,6 @@ const request = config => {
// 是否需要设置 token
const isToken = (config.headers || {}).isToken === false
config.header = config.header || {}
config.header['Tenant-Id'] = '1'
if (getToken() && !isToken) {
config.header['Authorization'] = 'Bearer ' + getToken()
}