瀏覽代碼

Update index.tsx

lex 2 年之前
父節點
當前提交
e272fa0251
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/student/my-orchestra/index.tsx

+ 10 - 0
src/student/my-orchestra/index.tsx

@@ -79,7 +79,17 @@ export default defineComponent({
       })
     }
 
+    const getOrchestras = async () => {
+      try {
+        const { data } = await request.post('/api-student/orchestra/studentOrchestra', {})
+        console.log(data)
+      } catch {
+        //
+      }
+    }
+
     onMounted(() => {
+      getOrchestras()
       getList()
     })
     return () => (