|
@@ -94,6 +94,16 @@ export default {
|
|
|
children: [{ key: "3.1.1", title: "3.1.1" }]
|
|
|
}
|
|
|
]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "4",
|
|
|
+ title: "第四章",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ key: "4.1",
|
|
|
+ title: "4.1"
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
};
|
|
@@ -101,6 +111,7 @@ export default {
|
|
|
components: {
|
|
|
"sub-menu": SubMenu
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
toggleCollapsed() {
|
|
|
this.collapsed = !this.collapsed;
|
|
@@ -109,6 +120,7 @@ export default {
|
|
|
console.log("titleClick", e);
|
|
|
console.log(`/chapter${e.key}`);
|
|
|
this.$router.push({ path: `/chapter${e.key}` });
|
|
|
+ this.$emit("change");
|
|
|
}
|
|
|
}
|
|
|
};
|