Ver código fonte

Merge branch 'feature-tianyong' into gym-test

TIANYONG 4 meses atrás
pai
commit
efd8d6f70e
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      src/page-instrument/api.ts

+ 5 - 0
src/page-instrument/api.ts

@@ -50,6 +50,11 @@ export const studentQueryUserInfo = async () => {
         id:data.id,
         gender:""
       }
+      if (res.data.specialInstrumentIds.length > 1 && data.extInstrumentNames?.length) {
+        data.extInstrumentNames.forEach((ext: any) => {
+          res.data.specialInstrumentIds.push(ext.instrumentIds)
+        })
+      }
       return res
     }
   } catch (error) {