Skip to content

Commit 5758350

Browse files
committed
🐛 优化打字效果,随机化打字延迟以增强动态表现
1 parent 3063f3f commit 5758350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/.vuepress/layouts/AmadeusGateLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const initCRT = () => {
195195
if (i < fullText.length) {
196196
typedText.value += fullText.charAt(i)
197197
i++
198-
setTimeout(type, 1)
198+
setTimeout(type, Math.random() * 150)
199199
} else {
200200
isTypingComplete.value = true
201201
}

0 commit comments

Comments
 (0)