diff --git a/src/utils/request.js b/src/utils/request.js index 3110d74..66674a8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -19,9 +19,9 @@ service.interceptors.request.use( // Store 必须在拦截器内部导入,在外部导入会显示 Pinia 未初始化 const store = useUserStore(); // 设置请求头部 Authorization - if(config.method=="put"){ - config.headers['Content-Type'] = 'application/x-www-form-urlencoded' - } + // if(config.method=="put"){ + // config.headers['Content-Type'] = 'application/x-www-form-urlencoded' + // } if (store.token) { config.headers['Authorization'] = 'Bearer ' + store.token; //config.headers['Content-Type'] = 'multipart/form-data' diff --git a/src/views/patient/patient-list/index.vue b/src/views/patient/patient-list/index.vue index 7a92e65..2ba1294 100644 --- a/src/views/patient/patient-list/index.vue +++ b/src/views/patient/patient-list/index.vue @@ -206,7 +206,7 @@ - +