切换环境

This commit is contained in:
2022-08-18 10:21:33 +08:00
parent 61f3dd8755
commit aa5c4a2c61
4 changed files with 19 additions and 13 deletions

View File

@@ -9,8 +9,8 @@ import router from '../router'
// 基础配置
const config = {
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境
apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
apiUrl : 'https://api.gongli.vip/api/', // 正式环境
// apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
timeout: 60000
}
@@ -46,7 +46,6 @@ const request = (parameter, hideLoding = true) => {
data: parameter.data || {},
method: parameter.method || 'GET',
success: res => {
console.log(res)
if (res.header.Authorization) {
updateToken('token', res.header.Authorization)
}