diff --git a/src/pages/View/checkbox.vue b/src/pages/View/checkbox.vue index 339c39e..2d7ead1 100644 --- a/src/pages/View/checkbox.vue +++ b/src/pages/View/checkbox.vue @@ -58,7 +58,7 @@ const localUnique = ref(props.unique); const localOtherOption = ref(props.otherOption); const localOptions = ref(props.options ? [...props.options] : []); const otherAnswer = ref(''); -const answerArr = ref([]); + const answerArr = ref(props.answer ? props.answer.split('┋') : []); const emits = defineEmits(['update:answer']); const otherAnswerChecked = ref(false) const otherCheckbox = ref(null); diff --git a/src/pages/View/file.vue b/src/pages/View/file.vue index 06b675b..5fd1453 100644 --- a/src/pages/View/file.vue +++ b/src/pages/View/file.vue @@ -36,7 +36,7 @@