This commit is contained in:
wenyann 2020-05-27 12:05:16 +08:00
parent 42d1b1ece1
commit dd21945dae
1 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,7 @@ export default {
}
let login = function () {
MessageBox.error({message: this.$t('commons.tips')}, {
MessageBox.alert(this.$t('commons.tips'), {
callback: () => {
window.location.href = "/login"
}
@ -29,8 +29,7 @@ export default {
}
return response;
}, error => {
Message.error({message: this.$t('commons.tips')});
return Promise.reject(this.$t('commons.tips'));
return Promise.reject(error);
});
function then(success, response, result) {