Commit 9bc75e5a by 姜雷

添加登出错误捕捉

parent 025f177c
...@@ -5,5 +5,4 @@ if (process.env.NODE_ENV === 'production') { ...@@ -5,5 +5,4 @@ if (process.env.NODE_ENV === 'production') {
module.exports = { module.exports = {
presets: ['@vue/app'], presets: ['@vue/app'],
plugins: removeConsolePlugin,
}; };
...@@ -86,8 +86,13 @@ const createBaseFetch = config => { ...@@ -86,8 +86,13 @@ const createBaseFetch = config => {
} }
) )
.then(() => { .then(() => {
store.dispatch('FedLogOut').then(() => { store
.dispatch('FedLogOut')
.then(() => {
location.reload(); // 为了重新实例化vue-router对象 避免bug location.reload(); // 为了重新实例化vue-router对象 避免bug
})
.catch(err => {
console.error('FedLogOutErr: ', err);
}); });
}) })
.catch(err => { .catch(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