fix(short-drama-agent-front): 修复代码格式检查问题

This commit is contained in:
GJ committed 2026-10-21 17:04:02 +08:00
1 parent 81d6a85260
commit 48fce3975f
87 files changed
+5714 -1436

No files matched your search

+6 -2
View File
@@ -67,7 +67,9 @@ describe('精简入口保留功能', () => {
it('未编辑要求时完整保留原有多行条目,不按换行拆开已保存内容', async () => {
const requirements = ['只使用古代服装\n保留角色配饰', '保持人物外观一致']
wrapper = mount(StyleEditor, { props: { visualStyle: styleFixture({ hardConstraints: requirements }), disabled: false } })
wrapper = mount(StyleEditor, {
props: { visualStyle: styleFixture({ hardConstraints: requirements }), disabled: false }
})
await wrapper.get('form').trigger('submit')
await flushPromises()
expect(wrapper.emitted('save')?.[0]?.[0]).toMatchObject({ hardConstraints: requirements })
@@ -75,7 +77,9 @@ describe('精简入口保留功能', () => {
it('旧格式要求只读核对,保存其他设置不会用空白要求覆盖旧内容', async () => {
const legacy = { legacyRules: ['完整保留旧要求'] }
wrapper = mount(StyleEditor, { props: { visualStyle: styleFixture({ hardConstraints: legacy }), disabled: false } })
wrapper = mount(StyleEditor, {
props: { visualStyle: styleFixture({ hardConstraints: legacy }), disabled: false }
})
expect(wrapper.get('#style-constraints').attributes('disabled')).toBeDefined()
await wrapper.get('form').trigger('submit')
await flushPromises()