From 82da100e6232a4486359c52892d9922d175236c1 Mon Sep 17 00:00:00 2001 From: nisen Date: Fri, 10 Nov 2023 15:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=AE=A1=E7=90=86=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=AD=A6=E5=91=98=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/student/OnlineClassModelStudent.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/student/OnlineClassModelStudent.vue b/src/components/student/OnlineClassModelStudent.vue index 0672b115..66afe4ec 100644 --- a/src/components/student/OnlineClassModelStudent.vue +++ b/src/components/student/OnlineClassModelStudent.vue @@ -263,9 +263,9 @@ watch(formData, () => { }); }); -const sysTypeOption1 = computed(() => store.state.content_type.find(({ code }) => code == formData.value.sysType1)); -const sysTypeOption2 = computed(() => sysTypeOption1.value?.children.find(({ code }) => code == formData.value.sysType2)); -const sysTypeOption3 = computed(() => sysTypeOption2.value?.children.find(({ code }) => code == formData.value.sysType2)); +const sysTypeOption1 = computed(() => store.state.content_type?.find(({ code }) => code == formData.value.sysType1)); +const sysTypeOption2 = computed(() => sysTypeOption1.value?.children?.find(({ code }) => code == formData.value.sysType2)); +const sysTypeOption3 = computed(() => sysTypeOption2.value?.children?.find(({ code }) => code == formData.value.sysType2)); const { data: studentList, fetch: searchStu, total, loading } = usePage(STUDENT_LIST, searchParams, false); const { loading: stuAsyncLoading, start } = useAsyncStu(formData.value.id, props.type, searchStu);