Browse Source

fix: change canteenEvaluation template

DESKTOP-USV654P\pc 2 months ago
parent
commit
ddc837fcf5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/canteenEvaluation/template/components/SubjectModal.vue

+ 3 - 1
src/views/canteenEvaluation/template/components/SubjectModal.vue

@@ -17,12 +17,14 @@
     if (data.isUpdate) {
       setFieldsValue({ ...data });
       optionsData.value = data.options;
-      setFieldsValue({ options: '1' });
+      // console.log('data', data.options);
+      // setFieldsValue({ options: '1' });
       if (data.type === 'radio_question' || data.type === 'multi_question') {
         updateSchema({
           field: 'options',
           component: 'Input',
           ifShow: true,
+          slot: 'options',
         });
       }
     }