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:
parent
d6d9a2117e
commit
4e397e5636
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user