Skip to content

Commit 727018b

Browse files
authored
fix(abc:exception): fix force overlay to img (#1928)
1 parent 15c26e0 commit 727018b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/abc/exception/exception.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ export class ExceptionComponent {
7575
backRouterLink = input<string | NzSafeAny[]>('/');
7676

7777
_img = computed(() => {
78-
const v = this.typeItem()?.img ?? this.img();
78+
const v = this.img() ?? this.typeItem()?.img;
7979
return v == null ? null : this.dom.bypassSecurityTrustStyle(`url('${v}')`);
8080
});
8181
_title = computed(() => {
82-
const v = this.typeItem()?.title ?? this.title();
82+
const v = this.title() ?? this.typeItem()?.title;
8383
return v == null ? null : this.dom.bypassSecurityTrustHtml(v);
8484
});
8585
_desc = computed(() => {
86-
const v = this.typeItem()?.desc ?? this.desc() ?? this.locale()[this.type()];
86+
const v = this.desc() ?? this.typeItem()?.desc ?? this.locale()[this.type()];
8787
return v == null ? null : this.dom.bypassSecurityTrustHtml(v);
8888
});
8989

0 commit comments

Comments
 (0)