Compare commits

...

2 Commits

Author SHA1 Message Date
luozhun 5730b81782 Merge remote-tracking branch 'origin/main' 2024-09-25 11:14:56 +08:00
luozhun 2ad0781f49 适配get请求 2024-09-25 11:14:48 +08:00
3 changed files with 12 additions and 8 deletions

View File

@ -78,6 +78,10 @@ class CustomRequest {
}
get<T>(url: string, params?: object, options: ApiOptions = {loading: false}): Promise<JsonResult<T>> {
options.header = {
...options.header,
"content-type": 'application/x-www-form-urlencoded'
}
return this.request<T>(url, "GET", options, params)
}
@ -86,6 +90,10 @@ class CustomRequest {
}
delete<T>(url: string, params?: object, options: ApiOptions = {loading: false}): Promise<JsonResult<T>> {
options.header = {
...options.header,
"content-type": 'application/x-www-form-urlencoded'
}
return this.request(url, "DELETE", options, params)
}

View File

@ -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()
}
//

View File

@ -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: