fix: format the files using latest .eslintrc.json

This commit is contained in:
niubility000 2024-03-23 16:45:40 +08:00 committed by GitHub
parent 0dc0620f50
commit 2f28bb4e62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,11 @@ export default {
},
watch: {
$route: function (to, from) {
if (to.path.endsWith("/") && from.path.startsWith(to.path) && from.path.length > to.path.length ){
if (
to.path.endsWith("/") &&
from.path.startsWith(to.path) &&
from.path.length > to.path.length
) {
this.parentDir = "true";
} else {
this.parentDir = "false";
@ -115,9 +119,11 @@ export default {
this.$store.commit("closeHovers");
// Set loading to true and reset the error.
if (window.sessionStorage.getItem("listFrozen") !=="true"
&& window.sessionStorage.getItem("modified") !=="true"
&& this.parentDir !== "true"){
if (
window.sessionStorage.getItem("listFrozen") !== "true" &&
window.sessionStorage.getItem("modified") !== "true" &&
this.parentDir !== "true"
) {
this.setLoading(true);
}
this.error = null;