MCPcopy
hub / github.com/HisMax/RedInk / deleteImageProvider

Function deleteImageProvider

frontend/src/composables/useProviderForm.ts:463–471  ·  view source on GitHub ↗

* 删除图片服务商

(name: string)

Source from the content-addressed store, hash-verified

461 * 删除图片服务商
462 */
463 async function deleteImageProvider(name: string) {
464 if (confirm(`确定要删除服务商 "${name}" 吗?`)) {
465 delete imageConfig.value.providers[name]
466 if (imageConfig.value.active_provider === name) {
467 imageConfig.value.active_provider = ''
468 }
469 await autoSaveConfig()
470 }
471 }
472
473 /**
474 * 测试图片服务商连接(弹窗中)

Callers

nothing calls this directly

Calls 1

autoSaveConfigFunction · 0.85

Tested by

no test coverage detected