소스 검색

添加参数

lex-xin 10 달 전
부모
커밋
4c00631698
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      src/views/accompany/index.tsx

+ 8 - 1
src/views/accompany/index.tsx

@@ -21,7 +21,14 @@ export default defineComponent({
     const getTree = async () => {
       try {
         const res: any = await request.post(
-          state.platformApi + '/musicSheetCategories/page'
+          state.platformApi + '/musicSheetCategories/page', {
+            data: {
+              parentId: 0,
+              enable: true,
+              page: 1,
+              rows: 10
+            }
+          }
         )
         console.log(res, 'res')
         const result = res.data.rows || []