feat: i18n sync

pull/4/MERGE
xingyu 2023-03-30 20:28:52 +08:00
parent dba710e8c0
commit 7641a6fb91
4 changed files with 7 additions and 5 deletions

View File

@ -7,5 +7,6 @@ export default {
delete: 'Delete',
detail: 'Detail',
export: 'Export',
import: 'Import'
import: 'Import',
sync: 'Sync'
}

View File

@ -7,5 +7,6 @@ export default {
delete: '删除',
detail: '详情',
export: '导出',
import: '导入'
import: '导入',
sync: '同步'
}

View File

@ -15,7 +15,7 @@
{ icon: IconEnum.DOWNLOAD, label: '生成', auth: 'infra:codegen:download', onClick: handleGenTable.bind(null, record) },
{
icon: IconEnum.RESET,
label: '同步',
label: t('action.sync'),
auth: 'infra:codegen:update',
popConfirm: {
title: '确认要强制同步' + record.tableName + '表结构吗?',

View File

@ -3,7 +3,7 @@
<BasicTable @register="registerTable">
<template #toolbar>
<a-button type="primary" v-auth="['mp:user:sync']" :preIcon="IconEnum.RESET" @click="handleSync">
{{ t('action.create') }}
{{ t('action.sync') }}
</a-button>
</template>
<template #bodyCell="{ column }">
@ -49,7 +49,7 @@ const [registerTable, { getForm, reload }] = useTable({
/** 同步按钮操作 */
async function handleSync() {
createConfirm({
title: '同步粉丝',
title: t('action.sync'),
iconType: 'warning',
content: '是否确认同步粉丝?',
async onOk() {