fix: lic错误信息翻译

This commit is contained in:
fit2cloud-chenyw
2021-05-18 16:17:07 +08:00
parent c9b206ccd8
commit 2d3eb9050c
6 changed files with 10 additions and 2 deletions

View File

@@ -369,6 +369,8 @@ export default {
sidebarLogo: 'Sidebar Logo'
},
license: {
i18n_no_license_record: 'No License Record',
i18n_license_is_empty: 'License is empty.',
title: 'Authorization Management',
corporation: 'Customer Name',
time: 'Authorization Time',

View File

@@ -369,6 +369,8 @@ export default {
sidebarLogo: '側邊欄 Logo'
},
license: {
i18n_no_license_record: '沒有 License 紀錄',
i18n_license_is_empty: 'License 為空',
title: '授權管理',
corporation: '客户名稱',
time: '授權時間',

View File

@@ -370,6 +370,8 @@ export default {
sidebarLogo: '侧边栏 Logo'
},
license: {
i18n_no_license_record: '没有 License 记录',
i18n_license_is_empty: 'License 为空',
title: '授权管理',
corporation: '客户名称',
time: '授权时间',

View File

@@ -1,6 +1,6 @@
<template>
<div v-if="!licstatus" class="lic">
<strong>{{ licMsg }}</strong>
<strong>{{ $t(licMsg) }}</strong>
</div>
</template>
@@ -24,7 +24,7 @@ export default {
return this.$store.state.lic.validate
},
licMsg() {
return this.$store.state.lic.licMsg
return this.$store.state.lic.licMsg ? ('license.' + this.$store.state.lic.licMsg) : null
}
},