Skip to content

Commit 0986801

Browse files
committed
update table
1 parent 51df82c commit 0986801

File tree

5 files changed

+12
-48
lines changed

5 files changed

+12
-48
lines changed

admin-ui/mocks/product.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export default webpackMockServer.add((app, helper) => {
1111
}]
1212
}).list;
1313

14-
res.json(products);
14+
res.json({
15+
success: true,
16+
data:products
17+
});
1518
});
1619
});

admin-ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@ant-design/icons": "^5.4.0",
7-
"@ant-design/pro-components": "^2.8.2",
7+
"@ant-design/pro-components": "^2.8.7",
88
"@babel/standalone": "^7.25.6",
99
"@codingapi/flow-pc": "^0.0.8",
1010
"@codingapi/form-pc": "^0.0.16",
@@ -19,7 +19,6 @@
1919
"@types/node": "^16.18.108",
2020
"@types/react": "^18.3.5",
2121
"@types/react-dom": "^18.3.0",
22-
"@visactor/react-vtable": "^1.18.2",
2322
"antd": "^5.20.6",
2423
"axios": "^1.7.7",
2524
"base64-js": "^1.5.1",

admin-ui/src/api/product.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import {get} from "@/api/index";
2+
3+
4+
export async function products() {
5+
return get('/api/products');
6+
}
7+

admin-ui/src/config/menus.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ export const menus = [
2727
icon: "FormOutlined",
2828
page: 'mirco',
2929
},
30-
{
31-
path: '/table',
32-
name: '表格',
33-
icon: "TableOutlined",
34-
page: 'table',
35-
},
3630
{
3731
path: '/flow',
3832
name: '流程',

admin-ui/src/pages/table/index.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)