fix(short-drama-agent-front): 优化拆解引导与质量规则配置

This commit is contained in:
GJ committed 2026-10-28 19:57:02 +08:00
1 parent c6ef595a8e
commit 2db8549818
13 files changed
+626 -225

No files matched your search

+4 -1
View File
@@ -1,9 +1,12 @@
import { inject, ref, type InjectionKey, type Ref } from 'vue'
/** 项目配置沿用同一个抽屉,可直接定位生成配置或质量规则。 */
export type ProjectSettingsTab = 'generation' | 'quality'
/** 项目内共享的配置修订号,成功保存后通知已挂载的生成表单重新读取。 */
export const projectGenerationRevisionKey: InjectionKey<Ref<number>> = Symbol('project-generation-revision')
/** 工作区辅助入口打开同一个项目配置抽屉,避免新建重复表单或覆盖当前路由。 */
export const projectSettingsOpenKey: InjectionKey<() => void> = Symbol('project-settings-open')
export const projectSettingsOpenKey: InjectionKey<(tab?: ProjectSettingsTab) => void> = Symbol('project-settings-open')
/**
* 读取项目配置修订号,独立使用组件时保留本地修订状态。