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

Function deleteTextProvider

frontend/src/composables/useProviderForm.ts:304–312  ·  view source on GitHub ↗

* 删除文本服务商

(name: string)

Source from the content-addressed store, hash-verified

302 * 删除文本服务商
303 */
304 async function deleteTextProvider(name: string) {
305 if (confirm(`确定要删除服务商 "${name}" 吗?`)) {
306 delete textConfig.value.providers[name]
307 if (textConfig.value.active_provider === name) {
308 textConfig.value.active_provider = ''
309 }
310 await autoSaveConfig()
311 }
312 }
313
314 /**
315 * 测试文本服务商连接(弹窗中)

Callers

nothing calls this directly

Calls 1

autoSaveConfigFunction · 0.85

Tested by

no test coverage detected