fix(用例管理): 修复用例评审新建名称可以输入空格问题

--bug=1036043 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036043
This commit is contained in:
guoyuqi 2024-03-25 11:30:10 +08:00 committed by Craftsman
parent 01af00de0c
commit 6a3bbffd4f
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
asterisk-position="end" asterisk-position="end"
> >
<a-input <a-input
v-model:modelValue="reviewForm.name" v-model.trim.modelValue="reviewForm.name"
:placeholder="t('caseManagement.caseReview.reviewNamePlaceholder')" :placeholder="t('caseManagement.caseReview.reviewNamePlaceholder')"
:max-length="255" :max-length="255"
/> />
@ -223,6 +223,7 @@
import { CaseManagementRouteEnum } from '@/enums/routeEnum'; import { CaseManagementRouteEnum } from '@/enums/routeEnum';
import type { FormInstance } from '@arco-design/web-vue'; import type { FormInstance } from '@arco-design/web-vue';
import { string } from 'fast-glob/out/utils';
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();