Commit 34e5bb21 by 无尘

fix: 修改接口 header 参数

parent 47b6fbcb
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-31 11:41:34 * @Date: 2020-07-31 11:41:34
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-21 11:14:23 * @LastEditTime: 2020-09-21 11:17:01
*/ */
import { request } from './request.js'; import { request } from './request.js';
import axios from 'axios'; import axios from 'axios';
...@@ -94,7 +94,7 @@ let permission = function(config) { ...@@ -94,7 +94,7 @@ let permission = function(config) {
if (path.indexOf('/login') == -1 && path.indexOf('/gic-error') == -1) { if (path.indexOf('/login') == -1 && path.indexOf('/gic-error') == -1) {
Object.assign(axios.defaults.headers.common, { Object.assign(axios.defaults.headers.common, {
project: projectPath, project: projectPath,
route: window.location.hash.match(/(?<=\#\/).*?(?=\?)/) route: window.location.hash.match(/(?<=\#\/).*?(?=\?)/)[0]
}); });
await getGicMenu(); await getGicMenu();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment