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', delete: 'Delete',
detail: 'Detail', detail: 'Detail',
export: 'Export', export: 'Export',
import: 'Import' import: 'Import',
sync: 'Sync'
} }

View File

@ -7,5 +7,6 @@ export default {
delete: '删除', delete: '删除',
detail: '详情', detail: '详情',
export: '导出', 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.DOWNLOAD, label: '生成', auth: 'infra:codegen:download', onClick: handleGenTable.bind(null, record) },
{ {
icon: IconEnum.RESET, icon: IconEnum.RESET,
label: '同步', label: t('action.sync'),
auth: 'infra:codegen:update', auth: 'infra:codegen:update',
popConfirm: { popConfirm: {
title: '确认要强制同步' + record.tableName + '表结构吗?', title: '确认要强制同步' + record.tableName + '表结构吗?',

View File

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