|
|
@@ -52,7 +52,7 @@ axios.interceptors.request.use(async (config) => {
|
|
|
// 进入编辑页时判断是否editOrShow,添加参数
|
|
|
const isEditOrShow = currentRoute?.query?.editOrShow;
|
|
|
if (isEditOrShow) {
|
|
|
- isEditOrShow == 'show' ? config.headers.page = 'view' : config.headers.page = 'edit';
|
|
|
+ isEditOrShow == 'show' ? config.headers['page-type'] = 'view' : config.headers['page-type'] = 'edit';
|
|
|
}
|
|
|
|
|
|
|