资料卡修改-单条台词不加序号(样式一)
This commit is contained in:
parent
dc15005824
commit
4e9df27c6d
|
@ -3651,7 +3651,7 @@ export class Click {
|
|||
introduction.appendChild(skillNameSpan);
|
||||
texts.forEach((text, index) => {
|
||||
const skillTextSpan = document.createElement("span");
|
||||
skillTextSpan.innerHTML = `${index + 1}. ${text}<br>`;
|
||||
skillTextSpan.innerHTML = `${texts.length > 1 ? `${index + 1}. ` : ""}${text}<br>`;
|
||||
introduction.appendChild(skillTextSpan);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue