任务首页搭建

This commit is contained in:
2022-08-31 09:07:00 +08:00
parent 5d72deb94f
commit 3410132c97
18 changed files with 1900 additions and 531 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,6 +46,7 @@ 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)
}