jwyu 11 tháng trước cách đây
mục cha
commit
20974c2b8b

+ 2 - 1
src/views/system/userList/components/MoveUserDepart.vue

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