jwyu 8 ヶ月 前
コミット
20974c2b8b
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/views/system/userList/components/MoveUserDepart.vue

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

@@ -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()
   }
 })