change some error message dialog to error message toast

This commit is contained in:
MaysWind
2020-11-24 00:48:53 +08:00
parent 645bd07d72
commit 48b60fec30
9 changed files with 71 additions and 61 deletions
+3 -3
View File
@@ -180,7 +180,7 @@ export default {
const data = response.data;
if (!data || !data.success || !data.result) {
self.$alert('Unable to logout');
self.$toast('Unable to logout');
return;
}
@@ -201,9 +201,9 @@ export default {
}
if (error.response && error.response.data && error.response.data.errorMessage) {
self.$alert({ error: error.response.data });
self.$toast({ error: error.response.data });
} else if (!error.processed) {
self.$alert('Unable to logout');
self.$toast('Unable to logout');
}
});
});