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')) {