fix(plugins): 插件默认启用(recordOf 默认 enabled:true),修「装了插件但列表为空/不能用」
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 44s

This commit is contained in:
qiqi committed 2026-11-17 12:38:52 +08:00
1 parent 3aa8b77d2c
commit 499d29a8a0
1 file changed
+2 -1
+2 -1
View File
@@ -38,7 +38,8 @@
function recordOf(id) {
const current = state[id]
if (current && typeof current === 'object') return current
const created = { enabled: false, settings: {}, data: {} }
// 默认启用:插件随包发布即应可用;只有用户显式关掉才写 enabled:false
const created = { enabled: true, settings: {}, data: {} }
state[id] = created
return created
}