chore: 租户选中状态 不显示个人中心
This commit is contained in:
parent
6d19560863
commit
17aa044da7
@ -21,13 +21,16 @@ import TenantToggle from '#/components/TenantToggle/index.vue';
|
|||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
import { resetRoutes } from '#/router';
|
import { resetRoutes } from '#/router';
|
||||||
import { useAuthStore, useNotifyStore } from '#/store';
|
import { useAuthStore, useNotifyStore } from '#/store';
|
||||||
|
import { useTenantStore } from '#/store/tenant';
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
const accessStore = useAccessStore();
|
const accessStore = useAccessStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const menus = computed(() => [
|
const tenantStore = useTenantStore();
|
||||||
|
const menus = computed(() => {
|
||||||
|
const defaultMenus = [
|
||||||
{
|
{
|
||||||
handler: () => {
|
handler: () => {
|
||||||
openWindow(VBEN_DOC_URL, {
|
openWindow(VBEN_DOC_URL, {
|
||||||
@ -62,7 +65,15 @@ const menus = computed(() => [
|
|||||||
icon: CircleHelp,
|
icon: CircleHelp,
|
||||||
text: $t('widgets.qa'),
|
text: $t('widgets.qa'),
|
||||||
},
|
},
|
||||||
]);
|
];
|
||||||
|
/**
|
||||||
|
* 租户选中状态 不显示个人中心
|
||||||
|
*/
|
||||||
|
if (tenantStore.checked) {
|
||||||
|
defaultMenus.splice(1, 1);
|
||||||
|
}
|
||||||
|
return defaultMenus;
|
||||||
|
});
|
||||||
|
|
||||||
const { loginLoading } = storeToRefs(authStore);
|
const { loginLoading } = storeToRefs(authStore);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user