UNPKG
@moyi.rk/template-vue-element-admin
Version:
latest (1.0.3)
1.0.3
1.0.0
vue2 element admin template
@moyi.rk/template-vue-element-admin
/
template
/
src
/
store
/
modules
/
errorLog.js
24 lines
(19 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const
state = {
logs
: [] }
const
mutations = {
ADD_ERROR_LOG
:
(
state, log
) =>
{ state.
logs
.
push
(log) } }
const
actions = {
addErrorLog
(
{ commit }, log
) {
commit
(
'ADD_ERROR_LOG'
, log) } }
export
default
{
namespaced
:
true
, state, mutations, actions }