vue axios token过期 多次弹窗的问题
作者:
gem_Y | 来源:发表于
2020-01-17 17:36 被阅读0次 if (retCode === '100014') {
MessageBox.confirm(retDesc, '会话超时', {
confirmButtonText: '确定',
type: 'warning',
showCancelButton: false,
showClose: false,
customClass: 'btn-center',
}).then(() => {
removeItemAll();
const url = `${window.location.origin}/#/login`;
console.log(url);
window.location.href = url;
}).catch(() => {
});
} else {
throw new Error(error);
}
本文标题:vue axios token过期 多次弹窗的问题
本文链接:https://www.haomeiwen.com/subject/qtqhzctx.html
网友评论