This commit is contained in:
go0p
2026-08-06 15:11:35 +08:00
committed by go0p
parent 1b896bc45d
commit 58d0b5bcc5
8 changed files with 347 additions and 446 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
"open_in_tab": true
},
"action": {
"default_title": "Click to open panel",
"default_popup": "index.html",
"default_icon": {
"16": "/images/icon16.png",
"48": "/images/icon48.png",
+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