19 lines
454 B
JavaScript
19 lines
454 B
JavaScript
|
export default {
|
||
|
methods: {
|
||
|
['$success'](message) {
|
||
|
this.$toasted.show(message, {
|
||
|
position: 'bottom-right',
|
||
|
duration: 2000,
|
||
|
type: 'success',
|
||
|
});
|
||
|
},
|
||
|
['$error'](message) {
|
||
|
this.$toasted.show(message, {
|
||
|
position: 'bottom-right',
|
||
|
duration: 2000,
|
||
|
type: 'error',
|
||
|
});
|
||
|
},
|
||
|
},
|
||
|
};
|