优化前端双语配置

This commit is contained in:
2026-03-31 18:20:03 +08:00
parent 7493c4e400
commit edd870457f
24 changed files with 253 additions and 95 deletions

View File

@@ -80,6 +80,7 @@
<script setup lang="ts">
import { ElMessage } from 'element-plus'
import { $t } from '@/locales'
import api from '@/api/safeguard/database'
import { useTable } from '@/hooks/core/useTable'
import generate from '@/api/tool/generate'
@@ -172,7 +173,7 @@
// 确认选择装载数据表
const handleLoadTable = async () => {
if (selectedRows.value.length < 1) {
ElMessage.info('至少要选择一条数据')
ElMessage.info($t('uiMsg.selectAtLeastOne'))
return
}
const names = selectedRows.value.map((item) => ({
@@ -185,7 +186,7 @@
source: searchForm.value.source,
names
})
ElMessage.success('装载成功')
ElMessage.success($t('page.ui.loadSuccess'))
emit('success')
handleClose()
}