From 2a84a3cf160ac80908678812a72cc94ed66b9085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Thu, 15 Aug 2024 16:39:56 +0800 Subject: [PATCH] =?UTF-8?q?Demo=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E5=9F=BA=E7=A1=80=E6=A0=B7=E5=BC=8F=E5=90=8E=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=BB=E9=A2=98=EF=BC=8C=E9=80=89=E6=8B=A9=E8=A6=86?= =?UTF-8?q?=E7=9B=96=EF=BC=8C=E5=86=8D=E4=BF=AE=E6=94=B9=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=97=B6=E4=B9=8B=E5=89=8D=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=BC=8F=E4=BC=9A=E6=81=A2=E5=A4=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/Edit.vue | 2 +- web/src/pages/Edit/components/Theme.vue | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/pages/Edit/components/Edit.vue b/web/src/pages/Edit/components/Edit.vue index ecf1c353..ef9d9ec0 100644 --- a/web/src/pages/Edit/components/Edit.vue +++ b/web/src/pages/Edit/components/Edit.vue @@ -17,7 +17,7 @@ - + diff --git a/web/src/pages/Edit/components/Theme.vue b/web/src/pages/Edit/components/Theme.vue index 539b4d23..06acc666 100644 --- a/web/src/pages/Edit/components/Theme.vue +++ b/web/src/pages/Edit/components/Theme.vue @@ -44,6 +44,10 @@ export default { Sidebar }, props: { + data: { + type: [Object, null], + default: null + }, mindMap: { type: Object } @@ -155,6 +159,7 @@ export default { callback: action => { if (action === 'confirm') { this.mindMap.setThemeConfig({}, true) + this.data.theme.config = {} this.changeTheme(theme, {}) } else if (action === 'cancel') { this.changeTheme(theme, customThemeConfig)