From c1361131a66b7b488af331650977eeb47838075f Mon Sep 17 00:00:00 2001 From: guqing <1484563614@qq.com> Date: Sat, 12 Oct 2019 23:01:51 +0800 Subject: [PATCH] Fixed a bug that could not change the contents of the input box after selecting an attachment --- src/views/interface/components/ThemeSetting.vue | 3 ++- src/views/system/OptionForm.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/interface/components/ThemeSetting.vue b/src/views/interface/components/ThemeSetting.vue index fa23f37b..61019373 100644 --- a/src/views/interface/components/ThemeSetting.vue +++ b/src/views/interface/components/ThemeSetting.vue @@ -317,7 +317,8 @@ export default { this.attachmentDrawerVisible = true }, handleSelectAttachment(data) { - this.themeSettings[this.selectedField] = encodeURI(data.path) + this.$set(this.themeSettings, this.selectedField, encodeURI(data.path)) + // this.themeSettings[this.selectedField] = encodeURI(data.path) this.attachmentDrawerVisible = false }, toggleViewMode() { diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue index 79f7159c..1df412bb 100644 --- a/src/views/system/OptionForm.vue +++ b/src/views/system/OptionForm.vue @@ -1198,7 +1198,7 @@ export default { } }, handleSelectLogo(data) { - this.options.blog_logo = encodeURI(data.path) + this.$set(this.options, 'blog_logo', encodeURI(data.path)) this.logoDrawerVisible = false }, handleTestMailClick() {