Commit ff1f554e by 无尘

fix: 修改接口 header 参数

parent 387fcb67
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-31 11:41:34
* @LastEditors: 无尘
* @LastEditTime: 2020-09-21 11:31:23
* @LastEditTime: 2020-09-21 11:32:52
*/
import { request } from './request.js';
import axios from 'axios';
......@@ -95,7 +95,7 @@ let permission = function(config) {
if (path.indexOf('/login') == -1 && path.indexOf('/gic-error') == -1) {
Object.assign(axios.defaults.headers.common, {
project: projectPath,
route: hashName.includes('?') ? hashName.match(/(?<=\#\/).*?(?=\?)/)[0] : hashName.match(/(?<=\#\/).*/)
route: hashName.includes('?') ? hashName.match(/(?<=\#\/).*?(?=\?)/)[0] : hashName.match(/(?<=\#\/).*/)[0]
});
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