@@ -16,12 +16,13 @@ async function getDepartList() {
const list = res.Data.List || []
departArr.value = list
}
-getDepartList()
+
const depart = ref('')
watch(() => show.value, (newval) => {
if (newval) {
depart.value = props.data.SysDepartmentId || ''
+ getDepartList()
})