File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ export interface EHTNamespace {
43
43
44
44
export interface EHTTag {
45
45
name : string ;
46
- intro ? : string ;
47
- links ? : string ;
46
+ intro : string ;
47
+ links : string ;
48
48
}
49
49
50
50
export interface TagItem extends EHTTag {
@@ -54,7 +54,7 @@ export interface TagItem extends EHTTag {
54
54
/** 去除 emoji 和图片等的名称 */
55
55
cn : string ;
56
56
/** 用于搜索的简介 */
57
- introSearch ? : string ;
57
+ introSearch : string ;
58
58
}
59
59
60
60
export type TagMap = Record < string , TagItem > ;
Original file line number Diff line number Diff line change @@ -113,10 +113,8 @@ export class Introduce {
113
113
</div>
114
114
<div class="ehs-content">
115
115
${
116
- tagData . intro
117
- ? tagData . intro
118
- : `
119
- <div class="ehs-no-intro">
116
+ tagData . intro ||
117
+ `<div class="ehs-no-intro">
120
118
<h3>无介绍</h3>
121
119
<center><a href="${ editorUrl } " target="_blank">提供介绍</a></center>
122
120
</div> `
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ export class TagDatabase {
87
87
key,
88
88
name : name ,
89
89
cn : this . tagging . removeImagesAndEmoji ( name ) ,
90
+ intro : '' ,
91
+ links : '' ,
90
92
introSearch : '' ,
91
93
} ;
92
94
if ( t . intro ) {
You can’t perform that action at this time.
0 commit comments