Skip to content

Commit

Permalink
顯示訊息由5筆擴充至10筆
Browse files Browse the repository at this point in the history
  • Loading branch information
Parsons committed Jul 30, 2024
1 parent d23530e commit 94df2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/PhaserGame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ onMounted(() => {
const res = JSON.parse(greeting.body)
console.log(res)
messages.value.push(`${getTimeString()}: ${res.message}`)
if (messages.value.length > 5) {
if (messages.value.length > 10) {
messages.value.shift()
}
// showGreeting(greeting.body)
Expand Down

0 comments on commit 94df2fd

Please sign in to comment.