diff --git a/README.md b/README.md
index 05e7a08dd6080b4430a20062d0c811912c8bb5af..51974c2e21429f7282c55118689b188bb97f6d97 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,13 @@
-# x_modellibrary
-
-## Project setup
-```
-npm install
-```
-
-### Compiles and hot-reloads for development
-```
-npm run serve
-```
-
-### Compiles and minifies for production
-```
-npm run build
-```
-
-### Lints and fixes files
-```
-npm run lint
-```
-
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+# 业务
+
+1. 可以创建模型
+1. 模型是有版本号的
+1. 左侧的列表为模型的类型
+1. 也就是说每个模型至少有一个类型
+1. 左侧列表是一个可以添加的二级树状列表
+
+# todo-list
+
+1. 左侧列表可以添加大的列表
+1. 左侧列表可以添加小的列表
+1. 对应的内容可以保存到数据库
\ No newline at end of file
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 1e57dfdf1099eb07ce6dacbae5b741b8f0584e0b..e0dcd4383095e715f2b17426a782d62d86ab0818 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -2,15 +2,14 @@
-
-
- 大分类A
- A.小分类a
- A.小分类b
-
-
+
+
{
+ this.append(data);
+ },
+ },
+ "+ "
+ )
+ )
+ );
+ } else {
+ return h(
+ "span",
+ {
+ class: "custom-tree-node",
+ },
+ h("span", null, node.label)
+ );
+ }
+ },
+
gotologin11() {
console.log("goto login");
this.$router.push("Login");
@@ -128,6 +168,27 @@ export default {
fbxnamelist: ["a.fbx", "b.fbx", "Samba Dancing.fbx"], // ! fbx列表,用于测试,后续会删掉
curefbxname: "a.fbx", // 当前的fbx名称,用于传参用
count: 0, // ! 一个索引,所随着点击次数增加,使用的时候要取余,在正式代码中会删掉
+ treeid: 1000,
+ treedata: [
+ {
+ id: 1,
+ label: "一级1",
+ canadd: true,
+ children: [
+ { id: 2, label: "二级1", canadd: false },
+ { id: 3, label: "二级2", canadd: false },
+ ],
+ },
+ {
+ id: 4,
+ label: "一级2",
+ canadd: true,
+ children: [
+ { id: 5, label: "二级3", canadd: false },
+ { id: 6, label: "二级4", canadd: false },
+ ],
+ },
+ ],
};
},
};