Added method to create a new list
This commit is contained in:
parent
27e2192747
commit
5ff4f5eb46
4 changed files with 105 additions and 7 deletions
|
|
@ -12,5 +12,20 @@ export default {
|
|||
title: 'Error',
|
||||
text: err
|
||||
})
|
||||
}
|
||||
},
|
||||
success(e, context) {
|
||||
// Build the notification text from error response
|
||||
let err = e.message
|
||||
if (e.response && e.response.data && e.response.data.message) {
|
||||
err += '<br/>' + e.response.data.message
|
||||
}
|
||||
|
||||
// Fire a notification
|
||||
context.$notify({
|
||||
type: 'success',
|
||||
title: 'Success',
|
||||
text: err
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
Reference in a new issue