diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index bf2ffbffa2..1d11528945 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -626,7 +626,8 @@ export default {
status: 'Authorization status',
valid: 'Valid',
invalid: 'Invalid',
- expired: 'Expired'
+ expired: 'Expired',
+ expired_msg: 'license has expired since {0}. It is recommended to update the license, which does not affect the use of enterprise version functions'
},
member: {
create: 'Add members',
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index 05355e1942..2bf2e5c31e 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -626,7 +626,8 @@ export default {
status: '授權狀態',
valid: '有效',
invalid: '無效',
- expired: '已過期'
+ expired: '已過期',
+ expired_msg: 'License已過期,過期時間:{0},為了不影響企業版功能的使用,建議您更新License'
},
member: {
create: '添加成員',
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index 0cd800d9a7..b5b49c6a93 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -625,7 +625,8 @@ export default {
status: '授权状态',
valid: '有效',
invalid: '无效',
- expired: '已过期'
+ expired: '已过期',
+ expired_msg: 'License已过期,过期时间:{0},为了不影响企业版功能的使用,建议您更新License'
},
member: {
create: '添加成员',
diff --git a/frontend/src/layout/components/Licbar.vue b/frontend/src/layout/components/Licbar.vue
index dfcc15f1b6..b4caa79e60 100644
--- a/frontend/src/layout/components/Licbar.vue
+++ b/frontend/src/layout/components/Licbar.vue
@@ -1,9 +1,18 @@
+
- {{ $t(licMsg) }}
+
+
@@ -20,9 +29,7 @@ export default {
}
},
computed: {
- /* theme() {
- return this.$store.state.settings.theme
- }, */
+
licValidate() {
return this.$store.state.lic.validate
},
@@ -30,40 +37,40 @@ export default {
return this.$store.state.lic.licStatus || ''
},
licMsg() {
+ if (this.$store.state.lic?.licMsg?.includes('expired')) {
+ const message = this.$store.state.lic.licMsg
+ const exp = message.substring(message.indexOf('since ') + 6, message.indexOf(','))
+ return this.$t('license.expired_msg').replace('{0}', exp)
+ }
return this.$store.state.lic.licMsg ? ('license.' + this.$store.state.lic.licMsg) : null
+ },
+ tipClosed() {
+ return localStorage.getItem('lic_closed')
}
},
mounted() {
- // this.validate()
},
methods: {
- // validate() {
- // validateLic().then(res => {
- // this.lic = true
- // this.$store.dispatch('lic/setValidate', true)
- // }).catch((e) => {
- // this.msg = e.response.data.message
- // this.lic = false
- // this.$store.dispatch('lic/setValidate', false)
- // })
- // }
+ closeTip() {
+ localStorage.setItem('lic_closed', true)
+ }
+
}
}