瀏覽代碼

添加参数

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 || []