适配get请求
This commit is contained in:
parent
376fcdecf3
commit
2ad0781f49
|
@ -78,6 +78,10 @@ class CustomRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
get<T>(url: string, params?: object, options: ApiOptions = {loading: false}): Promise<JsonResult<T>> {
|
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)
|
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>> {
|
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)
|
return this.request(url, "DELETE", options, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -228,11 +228,7 @@ const deleteUssrID = (snowFlakeId: string) => {
|
||||||
}
|
}
|
||||||
// 二次删除
|
// 二次删除
|
||||||
const dialogOk = async () => {
|
const dialogOk = async () => {
|
||||||
await api.delete(`/projectManageIndex/deleteSecurityUserByServiceProjectId`, {securityUserId: securityUserId.value}, {
|
await api.delete(`/projectManageIndex/deleteSecurityUserByServiceProjectId`, {securityUserId: securityUserId.value})
|
||||||
header: {
|
|
||||||
"content-type": 'application/x-www-form-urlencoded'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
initServiceProjectSecurityUserList()
|
initServiceProjectSecurityUserList()
|
||||||
}
|
}
|
||||||
// 详情
|
// 详情
|
||||||
|
|
|
@ -90,10 +90,10 @@ spring:
|
||||||
cache-names: common
|
cache-names: common
|
||||||
data:
|
data:
|
||||||
redis:
|
redis:
|
||||||
database: 10
|
database: 1
|
||||||
password: lonsung301
|
password: redis_csPDNr
|
||||||
port: 6380
|
port: 6380
|
||||||
host: 172.10.10.238
|
host: 118.253.177.137
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
lettuce:
|
lettuce:
|
||||||
pool:
|
pool:
|
||||||
|
|
Loading…
Reference in New Issue