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,9 +86,14 @@ const createBaseFetch = config => { ...@@ -86,9 +86,14 @@ const createBaseFetch = config => {
} }
) )
.then(() => { .then(() => {
store.dispatch('FedLogOut').then(() => { store
location.reload(); // 为了重新实例化vue-router对象 避免bug .dispatch('FedLogOut')
}); .then(() => {
location.reload(); // 为了重新实例化vue-router对象 避免bug
})
.catch(err => {
console.error('FedLogOutErr: ', err);
});
}) })
.catch(err => { .catch(err => {
console.error(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