From f10f9d8dce5f3184f4fa0e33bda7a976e8274e21 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 15 Oct 2026 17:39:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=97=B6=E9=95=BF?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=8A=A8=E6=80=81=E6=A0=A1=E9=AA=8C=E4=B8=8E?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E8=BE=93=E5=85=A5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/components/CreateProjectDialog.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/features/projects/components/CreateProjectDialog.vue b/src/features/projects/components/CreateProjectDialog.vue index df0224c..05b3157 100644 --- a/src/features/projects/components/CreateProjectDialog.vue +++ b/src/features/projects/components/CreateProjectDialog.vue @@ -85,11 +85,11 @@ async function submit() { } } /** 创建项目表单校验规则。 */ -const rules = { +const rules = computed(() => ({ title: requiredTextRule('项目标题'), topic: requiredTextRule('故事主题'), ...(form.durationMode !== 'flexible_episode_count' ? { episodeCount: integerRule('计划集数') } : {}) -} +}))