mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-10 13:45:27 +00:00
perf: 优化 license 报错
This commit is contained in:
parent
ae9c5c389d
commit
f347833ea8
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div v-if="!loading">
|
||||
<el-alert v-if="isExpire" type="error">
|
||||
{{ isExpire }}
|
||||
</el-alert>
|
||||
<el-alert v-if="reachedAssetAmountLimit" type="error">
|
||||
{{ reachedAssetAmountLimit }}
|
||||
<el-alert v-if="licenseMsg" type="error">
|
||||
{{ licenseMsg }} !
|
||||
<router-link :to="{ name: 'License' }" style="padding-left: 5px">
|
||||
{{ $t('common.View') }} <i class="fa fa-external-link" />
|
||||
</router-link>
|
||||
</el-alert>
|
||||
</div>
|
||||
</template>
|
||||
@ -26,6 +26,13 @@ export default {
|
||||
'publicSettings',
|
||||
'currentUser'
|
||||
]),
|
||||
licenseMsg() {
|
||||
if (this.isExpire) {
|
||||
return this.isExpire
|
||||
} else {
|
||||
return this.reachedAssetAmountLimit
|
||||
}
|
||||
},
|
||||
isExpire() {
|
||||
if (!this.publicSettings.XPACK_ENABLED || !this.$hasPerm('settings.change_license')) {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user