From c641332a177697a134483895c310809701167181 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 25 Sep 2023 16:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.js | 6 +++--- src/views/patient/patient-list/index.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 @@ - +