1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

fix infinite loop error in log record (#462)

This commit is contained in:
elsiosanchez 2020-04-24 18:07:58 -04:00 committed by GitHub
parent d6d9a2117e
commit 4e397e5636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,14 +21,6 @@ export const MixinInfo = {
}, },
gettersListRecordLogs() { gettersListRecordLogs() {
const changeLog = this.$store.getters.getRecordLogs.recorLogs const changeLog = this.$store.getters.getRecordLogs.recorLogs
if (this.isEmptyValue(changeLog)) {
return changeLog
}
changeLog.sort((a, b) => {
var c = new Date(a.logDate)
var d = new Date(b.logDate)
return d - c
})
return changeLog return changeLog
}, },
getIsChangeLog() { getIsChangeLog() {