资料卡修改-单条台词不加序号(样式一)

This commit is contained in:
lieren2023 2024-05-10 23:44:40 +08:00 committed by GitHub
parent dc15005824
commit 4e9df27c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
});