From 499d29a8a09188dfa79092b51e0537d145d6c944 Mon Sep 17 00:00:00 2001 From: qiqi Date: Tue, 17 Nov 2026 12:38:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugins):=20=E6=8F=92=E4=BB=B6=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=90=AF=E7=94=A8=EF=BC=88recordOf=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=20enabled:true=EF=BC=89=EF=BC=8C=E4=BF=AE=E3=80=8C?= =?UTF-8?q?=E8=A3=85=E4=BA=86=E6=8F=92=E4=BB=B6=E4=BD=86=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA/=E4=B8=8D=E8=83=BD=E7=94=A8=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin-host.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin-host.js b/src/plugin-host.js index 26076de..57387b9 100644 --- a/src/plugin-host.js +++ b/src/plugin-host.js @@ -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 }