Commit 9bc75e5a by 姜雷

添加登出错误捕捉

parent 025f177c
......@@ -5,5 +5,4 @@ if (process.env.NODE_ENV === 'production') {
module.exports = {
presets: ['@vue/app'],
plugins: removeConsolePlugin,
};
......@@ -86,9 +86,14 @@ const createBaseFetch = config => {
}
)
.then(() => {
store.dispatch('FedLogOut').then(() => {
location.reload(); // 为了重新实例化vue-router对象 避免bug
});
store
.dispatch('FedLogOut')
.then(() => {
location.reload(); // 为了重新实例化vue-router对象 避免bug
})
.catch(err => {
console.error('FedLogOutErr: ', err);
});
})
.catch(err => {
console.error(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment