Merge branch 'develop'
Former-commit-id: 204d09d8dabbed45e8bde8fb011647216b59093c [formerly 204d09d8dabbed45e8bde8fb011647216b59093c [formerly 204d09d8dabbed45e8bde8fb011647216b59093c [formerly 204d09d8dabbed45e8bde8fb011647216b59093c [formerly 2d56af03b4429f30f560df908e488ef79e65e946 [formerly bba811bd39bcf1903b5e15ec91e6f3527e2141cd]]]]] Former-commit-id: 70018967b277590baa30618c9e4f04f4c617390b Former-commit-id: 55643002672ce80e04f9e8bab4305e3efa7e04a9 Former-commit-id: 27ee23fc8bb76441e2f97f75a287f1e6cb22afd5 [formerly 06b80136a429e2b84c912c8015eb3a3b008bed9f] Former-commit-id: 3614d01c6b9e65ad4b2920ab2770e1f1f9e8265f Former-commit-id: b46d71c7e5b84357e6dea6b10fb33193d52f62d3 Former-commit-id: 7b470329c7888cad04eb04bbcca51877039711f6 Former-commit-id: d538cf24824af97d8e481e2fab74e4babdea67e9 Former-commit-id: 1e8039a2587772929035bf7cf0c3c5f389ec5afb
This commit is contained in:
@@ -8,7 +8,7 @@ export default {
|
||||
// 错误日志
|
||||
// + 日志条目的属性
|
||||
// - message 必须 日志信息
|
||||
// - type 非必须 类型 success | warning | info(默认) | error
|
||||
// - type 非必须 类型 success | warning | info(默认) | danger
|
||||
// - time 必须 日志记录时间
|
||||
// - meta 非必须 其它携带信息
|
||||
log: []
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
* @param {*} state vuex state
|
||||
*/
|
||||
lengthError (state) {
|
||||
return state.log.filter(l => l.type === 'error').length
|
||||
return state.log.filter(log => log.type === 'danger').length
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
Reference in New Issue
Block a user