Updates on errors
This commit is contained in:
9 files changed
+86
-18
No files matched your search
@@ -14,7 +14,13 @@ const mutations = {
|
||||
},
|
||||
showError: (state, value) => {
|
||||
state.show = 'error'
|
||||
state.showMessage = value
|
||||
|
||||
if (typeof value !== 'object') {
|
||||
state.showMessage = value
|
||||
return
|
||||
}
|
||||
|
||||
state.showMessage = value.message
|
||||
},
|
||||
setLoading: (state, value) => { state.loading = value },
|
||||
setReload: (state, value) => { state.reload = value },
|
||||
|
||||
Reference in new issue
Block a user