MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / handleSetProxyDefault

Function handleSetProxyDefault

static/js/settings.js:1021–1029  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1019
1020// 设为默认代理
1021async function handleSetProxyDefault(id) {
1022 try {
1023 await api.post(`/settings/proxies/${id}/set-default`);
1024 toast.success('已设为默认代理');
1025 loadProxies();
1026 } catch (error) {
1027 toast.error('操作失败: ' + error.message);
1028 }
1029}
1030
1031// 打开代理模态框
1032function openProxyModal(proxy = null) {

Callers

nothing calls this directly

Calls 4

loadProxiesFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected