Browse Source

修改接口

lex 8 months ago
parent
commit
6e77e39c42
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/accompany/music-list.tsx

+ 5 - 5
src/views/accompany/music-list.tsx

@@ -78,18 +78,18 @@ export default defineComponent({
     // 获取声部信息
     const getSubjects = async () => {
       try {
-        const subjects = await request.post(state.platformApi + '/open/subjectBasicConfig/page', {
-          data: {
+        const subjects = await request.get(state.platformApi + '/subject/musicList', {
+          params: {
             enableFlag: true,
             page: 1,
             rows: 100
           }
         })
-        const rows = subjects.data.rows || []
+        const rows = subjects.data || []
         rows.forEach((item: any) => {
           data.subjectList.push({
-            text: item.subjectName,
-            value: item.subjectId + ''
+            text: item.name,
+            value: item.id + ''
           })
         })
       } catch {