Commit 58fc8679 authored by 范雪寒's avatar 范雪寒

fix: bugs

parent 10f7be4b
...@@ -188,6 +188,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -188,6 +188,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
if (!this.bgItem.url) { if (!this.bgItem.url) {
callBack(); callBack();
return;
} }
bg.load(this.bgItem.url).then(() => { bg.load(this.bgItem.url).then(() => {
...@@ -213,6 +214,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -213,6 +214,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
const bg2 = this.bg2; const bg2 = this.bg2;
if (!this.bgItem2.url) { if (!this.bgItem2.url) {
callBack(); callBack();
return;
} }
bg2.load(this.bgItem2.url).then(() => { bg2.load(this.bgItem2.url).then(() => {
...@@ -446,6 +448,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -446,6 +448,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
this.bgItem2 = {}; this.bgItem2 = {};
} }
this.refreshBackground(() => { this.refreshBackground(() => {
console.log('汪汪汪')
if (!this.hotZoneItemArr) { if (!this.hotZoneItemArr) {
this.hotZoneItemArr = []; this.hotZoneItemArr = [];
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment