---fix bug

This commit is contained in:
yuping
2023-07-28 17:53:57 +08:00
parent e8612a32cf
commit 8ffff197fa

View File

@@ -88,7 +88,9 @@ const changeRole = (value) => {
const logOut = async () => {
await request(LOGOUT)
store.replaceState(createStore({state: {openpages: []}}).state);
document.cookie=''
localStorage.clear();
sessionStorage.clear();
(process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'alpine') ? router.push({path: '/login'}) : (window.location.href = window.location.protocol + process.env.VUE_APP_LOGIN_URL)
};
</script>