diff --git a/config.js b/config.js index c04a0d5..1760d30 100644 --- a/config.js +++ b/config.js @@ -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', diff --git a/pages/index/index.vue b/pages/index/index.vue index a8f4b92..749e925 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -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 } }) diff --git a/utils/request.js b/utils/request.js index 0154bd7..a6176ec 100644 --- a/utils/request.js +++ b/utils/request.js @@ -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() }