"back" button function fixed
This commit is contained in:
parent
08af881d3a
commit
dcb8f081bc
@ -106,9 +106,6 @@ export default {
|
||||
return filesize(this.size);
|
||||
},
|
||||
humanTime: function () {
|
||||
if (this.user.dateFormat) {
|
||||
return moment(this.modified).format("L LT");
|
||||
}
|
||||
return moment(this.modified).fromNow();
|
||||
},
|
||||
dragStart: function () {
|
||||
@ -247,7 +244,11 @@ export default {
|
||||
this.addSelected(this.index);
|
||||
},
|
||||
open: function () {
|
||||
this.$router.push({ path: this.url });
|
||||
if (this.isDir) {
|
||||
this.$router.push({ path: this.url });
|
||||
} else {
|
||||
this.$router.replace({ path: this.url });
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user