+
@@ -27,7 +27,8 @@ export default {
computed: {
...mapState({
isZenMode: state => state.localConfig.isZenMode,
- isDark: state => state.isDark
+ isDark: state => state.isDark,
+ activeSidebar: state => state.activeSidebar
})
},
watch: {
diff --git a/web/src/pages/Edit/components/Contextmenu.vue b/web/src/pages/Edit/components/Contextmenu.vue
index c2980860..c2d1d829 100644
--- a/web/src/pages/Edit/components/Contextmenu.vue
+++ b/web/src/pages/Edit/components/Contextmenu.vue
@@ -184,8 +184,8 @@ export default {
this.$bus.$off('node_click', this.hide)
this.$bus.$off('draw_click', this.hide)
this.$bus.$off('expand_btn_click', this.hide)
- this.$bus.$on('svg_mousedown', this.onMousedown)
- this.$bus.$on('mouseup', this.onMouseup)
+ this.$bus.$off('svg_mousedown', this.onMousedown)
+ this.$bus.$off('mouseup', this.onMouseup)
},
methods: {
...mapMutations(['setLocalConfig']),
diff --git a/web/src/pages/Edit/components/Theme.vue b/web/src/pages/Edit/components/Theme.vue
index 4a21d976..22c5797b 100644
--- a/web/src/pages/Edit/components/Theme.vue
+++ b/web/src/pages/Edit/components/Theme.vue
@@ -76,6 +76,12 @@ export default {
this.initGroup()
this.theme = this.mindMap.getTheme()
this.handleDark()
+
+ var self = this;
+ this.mindMap.on('view_theme_change',function(){
+ self.theme = self.mindMap.getTheme()
+ self.handleDark()
+ });
},
methods: {
...mapMutations(['setIsDark']),