样式修改
This commit is contained in:
1 parent
19aeba5fab
commit
c705e0b5ae
2 files changed
-443
No files matched your search
@@ -1,6 +1,4 @@
|
||||
import axios from 'axios'
|
||||
// === 临时假数据(任务分析 / 三情分析看板):撤掉时删除本 import 及下方 request 拦截器中的对应块即可 ===
|
||||
import { matchTaskBoardMock, taskBoardMockAdapter } from '@/strategy-components/components/task-components/task-mock-data'
|
||||
// axios.interceptors
|
||||
const service = axios.create({
|
||||
// baseURL: '', // url = base url + request url
|
||||
@@ -33,10 +31,6 @@ service.interceptors.response.use(
|
||||
)
|
||||
service.interceptors.request.use(
|
||||
config => {
|
||||
// === 临时假数据:任务看板两个接口直接走本地 mock,不发真实请求 ===
|
||||
if (matchTaskBoardMock(config.url)) {
|
||||
config.adapter = taskBoardMockAdapter as any;
|
||||
}
|
||||
// let token: any = localStorage.getItem('token');
|
||||
config.headers['Authorization'] = `Bearer admin`;
|
||||
// if (token) {
|
||||
|
||||
Reference in new issue
Block a user