fix: format the files using latest .eslintrc.json
This commit is contained in:
parent
0dc0620f50
commit
2f28bb4e62
@ -70,14 +70,18 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: function (to, from) {
|
$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";
|
this.parentDir = "true";
|
||||||
} else {
|
} else {
|
||||||
this.parentDir = "false";
|
this.parentDir = "false";
|
||||||
window.sessionStorage.removeItem(to.path);
|
window.sessionStorage.removeItem(to.path);
|
||||||
}
|
}
|
||||||
if (from.path.endsWith("/")) {
|
if (from.path.endsWith("/")) {
|
||||||
if (to.path.endsWith("/")) {
|
if (to.path.endsWith("/")) {
|
||||||
window.sessionStorage.setItem("listFrozen", "false");
|
window.sessionStorage.setItem("listFrozen", "false");
|
||||||
} else {
|
} else {
|
||||||
window.sessionStorage.setItem("listFrozen", "true");
|
window.sessionStorage.setItem("listFrozen", "true");
|
||||||
@ -115,9 +119,11 @@ export default {
|
|||||||
this.$store.commit("closeHovers");
|
this.$store.commit("closeHovers");
|
||||||
|
|
||||||
// Set loading to true and reset the error.
|
// Set loading to true and reset the error.
|
||||||
if (window.sessionStorage.getItem("listFrozen") !=="true"
|
if (
|
||||||
&& window.sessionStorage.getItem("modified") !=="true"
|
window.sessionStorage.getItem("listFrozen") !== "true" &&
|
||||||
&& this.parentDir !== "true"){
|
window.sessionStorage.getItem("modified") !== "true" &&
|
||||||
|
this.parentDir !== "true"
|
||||||
|
) {
|
||||||
this.setLoading(true);
|
this.setLoading(true);
|
||||||
}
|
}
|
||||||
this.error = null;
|
this.error = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user