1
This commit is contained in:
parent
dfde436c03
commit
03d6a5fd08
@ -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',
|
||||
|
@ -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
|
||||
}
|
||||
})
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user