Commit c9646c49 by 无尘

fix: 处理参数

parent 39c9975c
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-31 11:41:34
* @LastEditors: 无尘
* @LastEditTime: 2020-10-23 10:01:16
* @LastEditTime: 2020-10-29 09:40:33
*/
import { request } from './request.js';
import axios from 'axios';
......@@ -101,7 +101,7 @@ let permission = function(config) {
if (path.indexOf('/login') == -1 && path.indexOf('/gic-error') == -1) {
Object.assign(axios.defaults.headers.common, {
project: projectPath,
route: path.replace(/haoban-4/, '')
route: path.replace(/\/haoban-4\//, '')
});
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