Browse Source

feat: i18n sync

main
xingyu 2 years ago
parent
commit
7641a6fb91
  1. 3
      src/locales/lang/en/action.ts
  2. 3
      src/locales/lang/zh-CN/action.ts
  3. 2
      src/views/infra/codegen/index.vue
  4. 4
      src/views/mp/mpuser/index.vue

3
src/locales/lang/en/action.ts

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

3
src/locales/lang/zh-CN/action.ts

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

2
src/views/infra/codegen/index.vue

@ -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 + '表结构吗?',

4
src/views/mp/mpuser/index.vue

@ -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() {