Merge remote-tracking branch 'origin/0.8.X' into 0.8.X

This commit is contained in:
2026-07-08 14:45:50 +08:00
5 changed files with 19 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import errorCode from '@/utils/errorCode'
import { tansParams, blobValidate } from "@/utils/klp";
import cache from '@/plugins/cache'
import { saveAs } from 'file-saver'
import router from '@/router'
let downloadLoadingInstance;
// 是否显示重新登录
@@ -85,6 +86,10 @@ service.interceptors.request.use(config => {
}
}
}
// 将当前页面路由放入请求头,供后端操作日志记录
if (router.currentRoute && router.currentRoute.path) {
config.headers['X-Page-Route'] = router.currentRoute.path
}
return config
}, error => {
console.log(error)