MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / deleteSystem

Function deleteSystem

frontend/packages/core/src/pages/system/SystemConfig.tsx:325–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323 }
324
325 const deleteSystem = () => {
326 fetchData<BasicResponse<null>>('team/service', {
327 method: 'DELETE',
328 eoParams: { team: teamId, service: serviceId }
329 }).then((response) => {
330 const { code, msg } = response
331 if (code === STATUS_CODE.SUCCESS) {
332 message.success(msg || $t(RESPONSE_TIPS.success))
333 navigate(`/service/list`)
334 } else {
335 message.error(msg || $t(RESPONSE_TIPS.error))
336 }
337 })
338 }
339
340 useEffect(() => {
341 aiConfigFlushed && getProviderOptionList()

Callers 1

deleteSystemModalFunction · 0.85

Calls 2

$tFunction · 0.90
fetchDataFunction · 0.50

Tested by

no test coverage detected