From 104a8a48fa35e5b185e218a1cdeff0481f1e1343 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sat, 8 May 2021 11:04:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=83=8C=E6=99=AF=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=A9=BAurl=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/EditPanel/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/panel/list/EditPanel/index.vue b/frontend/src/views/panel/list/EditPanel/index.vue index a0baa1f45b..e4aa809645 100644 --- a/frontend/src/views/panel/list/EditPanel/index.vue +++ b/frontend/src/views/panel/list/EditPanel/index.vue @@ -58,8 +58,12 @@ export default { }, computed: { classBackground() { - return { - background: `url(${this.importTemplateInfo.snapshot}) no-repeat` + if (this.importTemplateInfo.snapshot) { + return { + background: `url(${this.importTemplateInfo.snapshot}) no-repeat` + } + } else { + return {} } } },