Merge remote-tracking branch 'origin/user-modify' into cloud

This commit is contained in:
yujicun
2023-07-28 18:18:24 +08:00

View File

@@ -88,7 +88,9 @@ const changeRole = (value) => {
const logOut = async () => { const logOut = async () => {
await request(LOGOUT) await request(LOGOUT)
store.replaceState(createStore({state: {openpages: []}}).state); store.replaceState(createStore({state: {openpages: []}}).state);
document.cookie=''
localStorage.clear(); 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) (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> </script>