yangchenggong1_wd

fix |> uat 环境 空字段崩溃

@@ -50,7 +50,7 @@ export struct CardSourceInfo { @@ -50,7 +50,7 @@ export struct CardSourceInfo {
50 50
51 processText() { 51 processText() {
52 const sourceText = this.contentDTO.rmhPlatform === 1 ? this.contentDTO.rmhInfo?.rmhName : this.contentDTO.source; 52 const sourceText = this.contentDTO.rmhPlatform === 1 ? this.contentDTO.rmhInfo?.rmhName : this.contentDTO.source;
53 - if (this.isLimited() && sourceText.length > this.maxLength) { 53 + if (sourceText && this.isLimited() && sourceText.length > this.maxLength) {
54 this.displayText = sourceText.substring(0, this.maxLength) + '...'; 54 this.displayText = sourceText.substring(0, this.maxLength) + '...';
55 this.isEllipsisActive = true; 55 this.isEllipsisActive = true;
56 } else { 56 } else {