diff --git a/packages/cli/src/worker/watcher.ts b/packages/cli/src/worker/watcher.ts index 951b6e941f..0fb12ed476 100644 --- a/packages/cli/src/worker/watcher.ts +++ b/packages/cli/src/worker/watcher.ts @@ -140,6 +140,7 @@ class Watcher { } private triggerGroupReload(neo: Dict, old: Dict, runtime: Plugin.Runtime) { + runtime.config = neo for (const name in { ...old, ...neo }) { if (name.startsWith('~') || name.startsWith('$')) continue const fork = runtime[Loader.kRecord][name] diff --git a/plugins/frontend/manager/client/index.ts b/plugins/frontend/manager/client/index.ts index 81507e597d..4c462760da 100644 --- a/plugins/frontend/manager/client/index.ts +++ b/plugins/frontend/manager/client/index.ts @@ -46,7 +46,7 @@ export default (ctx: Context) => { icon: 'puzzle-piece', order: 620, authority: 4, - fields: ['market', 'packages'], + fields: ['config', 'market', 'packages'], component: Market, }) diff --git a/plugins/frontend/manager/client/market/package.vue b/plugins/frontend/manager/client/market/package.vue index 0e2126a7dc..e9144f675a 100644 --- a/plugins/frontend/manager/client/market/package.vue +++ b/plugins/frontend/manager/client/market/package.vue @@ -5,7 +5,7 @@ - 配置 + 配置 添加 取消 @@ -48,10 +48,9 @@