格式化代码 var to let or const

This commit is contained in:
2025-05-28 20:29:24 +08:00
parent 8da20ab53e
commit 19d4c52c5e
15 changed files with 88 additions and 87 deletions

View File

@@ -140,7 +140,7 @@ export class TopBar extends Laya.Script {
}
updateDifficulty(difficulty: string): void {
this.items.forEach((label: Laya.Label, key: string) => {
this.items.forEach((label: Laya.Label) => {
label.color = "#0e2a53"
})
const label = this.items.get(difficulty)