NEZ-1220 fix: license 默认隐藏,查询后若有需要再出现

This commit is contained in:
zhangyu
2021-11-11 17:01:04 +08:00
parent b82cbedd22
commit 11a05c0505
2 changed files with 5 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ export default {
license: {
warnInfo: '',
token: '',
valid: false
valid: true
},
uploadFileList: [],
uploadFile: { file: '', path: '', uuid: '' },
@@ -148,7 +148,7 @@ export default {
methods: {
...mapActions(['loginSuccess']),
login () {
if (this.loading || !this.license.valid) {
if (this.loading || !this.license.valid || !this.license.token) {
return
}
if (this.validateLogin() && (this.$route.path == '/' || this.$route.path == '/login')) {

View File

@@ -110,7 +110,7 @@
<template v-else-if="item.prop === 'state'">
<!-- metrics-->
<span style="width: auto;display: inline-block"
<span style="width: auto;display: inline-block;cursor: pointer"
@mouseenter="labelHoverConfigs(scope.row, 0, true, $event)"
@mouseleave="labelHoverConfigs(scope.row, 0, false, $event)"
>
@@ -131,7 +131,7 @@
</div>
</nz-tooltip>
<!-- logs-->
<span style="width: auto;display: inline-block"
<span style="width: auto;display: inline-block;cursor: pointer"
@mouseenter="labelHoverConfigs(scope.row, 1, true, $event)"
@mouseleave="labelHoverConfigs(scope.row, 1, false, $event)">
<span class="endpoint-cell-left" style="margin-left: 10px"><i class="nz-icon nz-icon-logs colorFA901C" /> {{$t('project.endpoint.logs')}} </span>
@@ -380,6 +380,7 @@ export default {
color: #3C92F1;
position: relative;
display: inline-block;
cursor: pointer;
}
.configs-endpoint .endpointConfigsTips {
display: none;