feat: add ability to select file modified time format (#1536)

This commit is contained in:
lilihx
2021-09-11 20:12:51 +08:00
committed by GitHub
parent 0358e42d2c
commit 0426629a59
6 changed files with 17 additions and 1 deletions

View File

@@ -106,6 +106,9 @@ 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 () {