Commit 48adcada authored by wangkai's avatar wangkai 🤒
Browse files

删除多余代码

parent d86b5f08
......@@ -19,7 +19,7 @@ yarn dev
## 核心代码
./src/index down 方法
./src/index.js down 方法
## LICENSE
......
const treeData = [
{
id: 1,
name: '威发',
children: [
{
id: 10,
name: '前端组',
children: [],
parentId: 3,
parentName: '威发',
},
],
parentId: 0,
parentName: '',
},
];
export default {
// 树
'GET /api/BLOCK_NAME_CAMEL_CASE/fetchTreeData': {
code: 0,
msg: 'success',
data: treeData,
},
// 节点
'GET /api/BLOCK_NAME_CAMEL_CASE/fetchNodeData': (req, res) => {
if (req.query.id == 1) {
res.send({
code: 0,
msg: 'success',
data: {
id: 1,
name: '威发',
},
});
} else if (req.query.id == 10) {
res.send({
code: 0,
msg: 'success',
data: {
id: 10,
name: '前端组',
},
});
}
},
// 保存
'POST /api/BLOCK_NAME_CAMEL_CASE/saveNodeData': {
code: 0,
msg: 'success',
data: null,
},
// 更新
'POST /api/BLOCK_NAME_CAMEL_CASE/updateNodeData': {
code: 0,
msg: 'success',
data: null,
},
'POST /api/BLOCK_NAME_CAMEL_CASE/deleteNode': {
code: 0,
msg: 'success',
data: null,
},
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment