diff --git a/src/App.vue b/src/App.vue index 05c8f5f..b672ef0 100755 --- a/src/App.vue +++ b/src/App.vue @@ -40,6 +40,10 @@ padding: 0 25px; } +.el-notification { + width: 290px; +} + .auth { display: flex; flex-direction: column; diff --git a/src/services/errors.js b/src/services/errors.js index b012285..1764575 100644 --- a/src/services/errors.js +++ b/src/services/errors.js @@ -1,3 +1,5 @@ +import { Notification } from 'element-ui' + export const errorHandler = (error) => { - alert(error) + Notification.error(error); } \ No newline at end of file