lex il y a 2 ans
Parent
commit
591199f32b
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      src/school/train-planning/modal/practice-class/index.tsx

+ 7 - 1
src/school/train-planning/modal/practice-class/index.tsx

@@ -153,7 +153,13 @@ export default defineComponent({
       if (!props.orchestraId) {
         await getOrchestras()
       }
-      await getList()
+      // 判断是否有乐团编号
+      setTimeout(
+        async () => {
+          await getList()
+        },
+        props.orchestraId ? 0 : 100
+      )
     })
 
     return () => (