Browse Source

完成表单提交业务逻辑

yuanmingze 2 tháng trước cách đây
mục cha
commit
e06779b252
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/pages-task/task-form/components/LongText.vue

+ 2 - 1
src/pages-task/task-form/components/LongText.vue

@@ -44,7 +44,7 @@ const value = defineModel<FieldValue>('value', {
   default: null,
 })
 
-defineModel<FieldValue>('label', {
+const label = defineModel<FieldValue>('label', {
   default: null,
 })
 
@@ -57,6 +57,7 @@ const textareaValue = computed({
     return value.value ?? ''
   },
   set(newValue: string) {
+    label.value = newValue
     value.value = newValue
   },
 })