Merge branch 'dev' of https://github.com/metersphere/server into dev
This commit is contained in:
commit
903c81c93b
|
@ -44,6 +44,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkLanguage(lang) {
|
checkLanguage(lang) {
|
||||||
|
if (!lang) return;
|
||||||
this.$setLang(lang);
|
this.$setLang(lang);
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case ZH_CN:
|
case ZH_CN:
|
||||||
|
|
|
@ -14,12 +14,12 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
let login = function () {
|
let login = function () {
|
||||||
MessageBox.alert(this.$t('commons.tips'), {
|
MessageBox.alert("The authentication information has expired, please login again", "Prompt", {
|
||||||
callback: () => {
|
callback: () => {
|
||||||
window.location.href = "/login"
|
window.location.href = "/login"
|
||||||
}
|
}
|
||||||
}).then(r => {
|
}).then(r => {
|
||||||
|
window.location.href = "/login"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
}
|
}
|
||||||
result.loading = false;
|
result.loading = false;
|
||||||
window.console.error(error.response || error.message);
|
window.console.error(error.response || error.message);
|
||||||
if (error.response.data) {
|
if (!error.response.data) {
|
||||||
Message.error({message: error.response.data.message, showClose: true});
|
Message.error({message: error.response.data.message, showClose: true});
|
||||||
} else {
|
} else {
|
||||||
Message.error({message: error.message, showClose: true});
|
Message.error({message: error.message, showClose: true});
|
||||||
|
|
Loading…
Reference in New Issue