diff --git a/src/utils/QuestionJsons/MartrixQuestion.js b/src/utils/QuestionJsons/MartrixQuestion.js index 917a9a9..7590022 100644 --- a/src/utils/QuestionJsons/MartrixQuestion.js +++ b/src/utils/QuestionJsons/MartrixQuestion.js @@ -29,7 +29,7 @@ export default { ], [ { - option: '
列标签1
', + option: '列标签1
', id: '1049201', type: 2, is_other: 0, diff --git a/src/views/Design/components/Questions/Choice.vue b/src/views/Design/components/Questions/Choice.vue index 5d8c5b5..a366fa7 100644 --- a/src/views/Design/components/Questions/Choice.vue +++ b/src/views/Design/components/Questions/Choice.vue @@ -107,8 +107,8 @@ import { defineAsyncComponent } from 'vue'; // 是否是预览 const isPreview = defineModel('isPreview', { default: false, type: Boolean }); -const choiceValue = defineModel('answer', { default: '1', type: String }); -const value = defineModel('checkboxAnswer', { default: [1, 2], type: Array }); +const choiceValue = defineModel('answer', { default: '', type: String }); +const value = defineModel('checkboxAnswer', { default: [], type: Array }); const errorMessage = defineModel('errorMessage', { default: '', type: String }); const Contenteditable = defineAsyncComponent(() => import('@/components/contenteditable.vue')); defineProps({