fix files accessed sort

This commit is contained in:
chiayin
2023-04-14 10:58:39 +08:00
parent 7b04e2f098
commit aa52c4bce1
2 changed files with 6 additions and 5 deletions

View File

@@ -70,8 +70,8 @@ export default defineStore('filesStore', {
o.parentLog = "-";
o.fileType = "Log";
o.ownerName = o.owner.name;
o.updated_at = moment(o.updated_at).format('YYYY-MM-DD HH:MM');
o.accessed_at = moment(o.accessed_at).format('YYYY-MM-DD HH:MM');
o.updated_at = moment(o.updated_at).utcOffset('+08:00').format('YYYY-MM-DD HH:MM');
o.accessed_at = moment(o.accessed_at).utcOffset('+08:00').format('YYYY-MM-DD HH:mm');
return this.allEventLog
})
if(this.httpStatus < 300) loading.isLoading = false;
@@ -101,8 +101,8 @@ export default defineStore('filesStore', {
this.allFilter.map(o => {
o.fileType = "Filter";
o.ownerName = o.owner.name;
o.updated_at = moment(o.updated_at).format('YYYY-MM-DD HH:MM');
o.accessed_at = moment(o.accessed_at).format('YYYY-MM-DD HH:MM');
o.updated_at = moment(o.updated_at).utcOffset('+08:00').format('YYYY-MM-DD HH:MM');
o.accessed_at = moment(o.accessed_at).utcOffset('+08:00').format('YYYY-MM-DD HH:MM');
});
if(this.httpStatus < 300) loading.isLoading = false;
} catch(error) {