This commit is contained in:
go0p
2025-03-02 15:31:20 +08:00
parent 3e99ba57ac
commit bb822b2d5b
8 changed files with 347 additions and 446 deletions
+14 -6
View File
@@ -27,12 +27,20 @@ export class ProxySettings {
const configs = await proxyStore.getProxyConfigs();
if (!configs || configs.length === 0) {
// 设置默认的直接连接配置
await proxyStore.saveProxyConfigs([{
id: 'direct',
name: '直接连接',
proxyType: 'direct',
enabled: false
}]);
await proxyStore.saveProxyConfigs([
{
id: 'direct',
name: '直接连接',
proxyType: 'direct',
enabled: false
},
{
id: 'system',
name: '系统代理',
proxyType: 'system',
enabled: false
}
]);
}
// 确保日志存储已初始化
const logs = await proxyStore.getLogs(); // 使用 getLogs 而不是 getProxyLogs