Przeglądaj źródła

🚑 修改为空图片显示

imengyu 1 miesiąc temu
rodzic
commit
5f07023e14
1 zmienionych plików z 4 dodań i 0 usunięć
  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 = []
     }
   }