diff --git a/collect_information/src/request/index.ts b/collect_information/src/request/index.ts index 5095fd2..8c22ad3 100644 --- a/collect_information/src/request/index.ts +++ b/collect_information/src/request/index.ts @@ -78,6 +78,10 @@ class CustomRequest { } get(url: string, params?: object, options: ApiOptions = {loading: false}): Promise> { + options.header = { + ...options.header, + "content-type": 'application/x-www-form-urlencoded' + } return this.request(url, "GET", options, params) } @@ -86,6 +90,10 @@ class CustomRequest { } delete(url: string, params?: object, options: ApiOptions = {loading: false}): Promise> { + options.header = { + ...options.header, + "content-type": 'application/x-www-form-urlencoded' + } return this.request(url, "DELETE", options, params) } diff --git a/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue b/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue index 5d45301..8fa23b9 100644 --- a/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue +++ b/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue @@ -228,11 +228,7 @@ const deleteUssrID = (snowFlakeId: string) => { } // 二次删除 const dialogOk = async () => { - await api.delete(`/projectManageIndex/deleteSecurityUserByServiceProjectId`, {securityUserId: securityUserId.value}, { - header: { - "content-type": 'application/x-www-form-urlencoded' - } - }) + await api.delete(`/projectManageIndex/deleteSecurityUserByServiceProjectId`, {securityUserId: securityUserId.value}) initServiceProjectSecurityUserList() } // 详情 diff --git a/policeSecurityServer/src/main/resources/env/dev/application.yml b/policeSecurityServer/src/main/resources/env/dev/application.yml index eb06cb5..b52c328 100644 --- a/policeSecurityServer/src/main/resources/env/dev/application.yml +++ b/policeSecurityServer/src/main/resources/env/dev/application.yml @@ -90,10 +90,10 @@ spring: cache-names: common data: redis: - database: 10 - password: lonsung301 + database: 1 + password: redis_csPDNr port: 6380 - host: 172.10.10.238 + host: 118.253.177.137 timeout: 10s lettuce: pool: