diff --git a/index.html b/index.html index cdc64b40..0eceb4a6 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -一个简单的web思维导图实现
\ No newline at end of file +一个简单的web思维导图实现
\ No newline at end of file diff --git a/web/src/pages/Edit/components/Toolbar.vue b/web/src/pages/Edit/components/Toolbar.vue index 436c04c9..9e9b749c 100644 --- a/web/src/pages/Edit/components/Toolbar.vue +++ b/web/src/pages/Edit/components/Toolbar.vue @@ -106,7 +106,7 @@
@@ -194,14 +194,14 @@ export default { }, computed: { hasRoot() { - return this.activeNodes.find((node) => { + return this.activeNodes.findIndex((node) => { return node.isRoot; - }); + }) !== -1; }, hasGeneralization() { - return this.activeNodes.find((node) => { + return this.activeNodes.findIndex((node) => { return node.isGeneralization; - }); + }) !== -1;; } }, created() {