fix: 國際化

This commit is contained in:
taojinlong 2021-05-25 19:26:39 +08:00
parent cebbc87e6e
commit 1eb8c97238
5 changed files with 9 additions and 3 deletions

View File

@ -815,6 +815,8 @@ export default {
input_limit_0_50: '0-50 chars'
},
panel: {
no_auth_role: 'Unshared roles',
auth_role: 'Shared roles',
picture_limit: 'Only pictures can be inserted',
drag_here: 'Please drag the left field here',
copy_link_passwd: 'Copy link and password',

View File

@ -814,6 +814,8 @@ export default {
input_limit_0_50: '0-50字符'
},
panel: {
no_auth_role: '未分享角色',
auth_role: '已分享角色',
picture_limit: '只能插入圖片',
drag_here: '請將左側字段拖至此處',
copy_link_passwd: '複製鏈接及密碼',

View File

@ -816,6 +816,8 @@ export default {
input_limit_0_50: '0-50字符'
},
panel: {
no_auth_role: '未分享角色',
auth_role: '已分享角色',
picture_limit: '只能插入图片',
drag_here: '请将左侧字段拖至此处',
copy_link_passwd: '复制链接及密码',

View File

@ -162,7 +162,7 @@ export default {
const rows = this.$refs.table.store.states.selection
const request = this.buildRequest(rows)
saveShare(request).then(res => {
this.$success('保存成功')
this.$success(this.$t('commons.save_success'))
return true
}).catch(err => {
this.$error(err.message)

View File

@ -33,9 +33,9 @@ export default {
data() {
return {
data: [],
defaultHeadName: '全部',
defaultHeadName: this.$t('commons.all'),
columnLabel: null,
filter_options: [{ text: '未分享角色', value: 0 }, { text: '已分享角色', value: 1 }],
filter_options: [{ text: this.$t('panel.no_auth_role'), value: 0 }, { text: this.$t('panel.auth_role'), value: 1 }],
fieldName: 'name',
type: 1, // 1
shares: []