feat: 超级管理员租户切换

This commit is contained in:
dap
2024-08-07 11:55:13 +08:00
parent 6ed3058689
commit 1e29c37036
6 changed files with 176 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import { openWindow } from '@vben/utils';
import { message } from 'ant-design-vue';
import TenantToggle from '#/components/TenantToggle/index.vue';
import { $t } from '#/locales';
import { resetRoutes } from '#/router';
import { useAuthStore, useNotifyStore } from '#/store';
@@ -77,6 +78,9 @@ function handleViewAll() {
<template>
<BasicLayout @clear-preferences-and-logout="handleLogout">
<template #header-right-1>
<TenantToggle />
</template>
<template #user-dropdown>
<UserDropdown
:avatar