Explorar o código

🚑 修改为空图片显示

imengyu hai 1 mes
pai
achega
5f07023e14
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/api/CommonContent.ts

+ 4 - 0
src/api/CommonContent.ts

@@ -225,12 +225,16 @@ export class GetContentDetailItem extends DataModel<GetContentDetailItem> {
       return undefined;
     };
     this._afterSolveServer = () => {
+      if (this.image === 'https://mncdn.wenlvti.net')
+        this.image = '';
       if (!this.image && this.images && this.images && this.images.length > 0  ) {
         this.image = this.images[0]
       }
       if ((!this.images || this.images.length == 0) && this.image && this.image != '') {
         this.images = [ this.image ]
       }
+      if (!this.images)
+         this.images = []
     }
   }