多语言优化

This commit is contained in:
2026-03-19 15:40:06 +08:00
parent db0e420a8f
commit 333e85f7d9
45 changed files with 864 additions and 276 deletions

View File

@@ -416,7 +416,7 @@
await formRef.value.validate()
const useCustomWeights = isLotteryConfigEmpty()
if (useCustomWeights && Math.abs(weightsSum.value - 100) > 0.01) {
ElMessage.warning('五个池权重总和必须为100%')
ElMessage.warning($t('page.form.ruleWeightsSumMustBe100'))
return
}
const payload = { ...formData }
@@ -428,10 +428,10 @@
}
if (props.dialogType === 'add') {
await api.save(payload)
ElMessage.success('新增成功')
ElMessage.success($t('page.form.addSuccess'))
} else {
await api.update(payload)
ElMessage.success('修改成功')
ElMessage.success($t('page.form.editSuccess'))
}
emit('success')
handleClose()