game2006admin/src/store/errorLog.js
2017-12-12 18:14:31 +08:00

14 lines
176 B
JavaScript

const errLog = {
state: {
errLog: []
},
pushLog(log) {
this.state.errLog.unshift(log)
},
clearLog() {
this.state.errLog = []
}
}
export default errLog