Skip to content

Commit

Permalink
🍔fix:还原角色切换逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
durunsong committed Nov 20, 2024
1 parent e101fd4 commit 67e0b33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/layouts/components/NavigationBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ import { useLayoutMode } from "@/hooks/useLayoutMode";
import { useI18n } from "vue-i18n";
import CACHE_KEY from "@/constants/cache-key";
import { getLocalData } from "@/utils/cache/local-storage";
import { useRouter } from "vue-router";
const router = useRouter();
const { t } = useI18n();
const { isMobile } = useDevice();
Expand Down Expand Up @@ -134,7 +132,7 @@ const toggleSidebar = () => {
/** 登出 */
const logout = () => {
userStore.logout();
router.push("/login");
window.location.reload();
};
</script>

Expand Down

0 comments on commit 67e0b33

Please sign in to comment.