diff --git a/src/components/project/SearchTeacher.vue b/src/components/project/SearchTeacher.vue index 173e80df..84d6fd81 100644 --- a/src/components/project/SearchTeacher.vue +++ b/src/components/project/SearchTeacher.vue @@ -93,13 +93,15 @@ const props = defineProps({ }) const emit = defineEmits(['update:value','update:lable','update:system','update:level','update:newlable']) const visible = ref(false); +const selectData = ref(null); watch(()=>props.value,(val)=>{ if(val){ selectData.value = val + }else{ + selectData.value = null } -}) +},{immediate:true}) const teacherName = ref('') -const selectData = ref(null); const selectName = ref(null) const options = ref([]); const selectOptions = ref([]) @@ -239,7 +241,7 @@ watch(()=>visible.value,(val)=>{ levelName.value = '' neworgName.value='' selectName.value = null - selectData.value = '' + // selectData.value = '' teacherId.value = '' loadingChange.value = false // changeneworg()