[F] Fix a login bug
This commit is contained in:
@@ -51,6 +51,9 @@ export default class Login extends Vue
|
|||||||
// Version doesn't exist
|
// Version doesn't exist
|
||||||
if (!this.$cookies.isKey('va.version')) return true;
|
if (!this.$cookies.isKey('va.version')) return true;
|
||||||
|
|
||||||
|
// Bug
|
||||||
|
if (this.$cookies.get('va.token') == 'undefined') return true
|
||||||
|
|
||||||
// If the current version is less than the min supported version
|
// If the current version is less than the min supported version
|
||||||
return VersionUtils.compare(this.$cookies.get('va.version'), Constants.MIN_SUPPORTED_VERSION) == -1;
|
return VersionUtils.compare(this.$cookies.get('va.version'), Constants.MIN_SUPPORTED_VERSION) == -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user