mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
docs: 新增西班牙语和日语README并优化多语言文档
新增README-ES.md(西班牙语)和README-JA.md(日语)文档,完善多语言README互链。优化各语言README徽章、技术栈、外链格式及语言切换区,提升文档一致性与可读性。
This commit is contained in:
@@ -217,6 +217,10 @@
|
||||
const alertDialogTitle = ref('')
|
||||
const alertDialogMessage = ref('')
|
||||
|
||||
// 防抖状态:防止快速点击
|
||||
const isProcessing = ref(false)
|
||||
const DEBOUNCE_DELAY = 300 // 防抖延迟(毫秒)
|
||||
|
||||
// 资源类型配置(用于成本显示)
|
||||
const costResourceTypes = [
|
||||
{ key: 'metal' as const },
|
||||
@@ -262,6 +266,13 @@
|
||||
|
||||
// 建造防御设施
|
||||
const handleBuild = (defenseType: DefenseType, event: MouseEvent) => {
|
||||
// 防抖:防止快速点击
|
||||
if (isProcessing.value) return
|
||||
isProcessing.value = true
|
||||
setTimeout(() => {
|
||||
isProcessing.value = false
|
||||
}, DEBOUNCE_DELAY)
|
||||
|
||||
const quantity = quantities.value[defenseType]
|
||||
if (quantity <= 0) {
|
||||
alertDialogTitle.value = t('defenseView.inputError')
|
||||
|
||||
Reference in New Issue
Block a user