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 {} } } },