review:【ep 全局】实现

This commit is contained in:
YunaiV
2025-05-12 19:31:49 +08:00
parent 0eb8a683c9
commit 47716d6264
7 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @芋艿:是否有更好的组织形式?!
import type { Key } from 'ant-design-vue/es/table/interface';
import type { SystemDeptApi } from '#/api/system/dept';

View File

@@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu这个有可能 3 端复用么?想着是把 layouts 下的 components 没有这个目录哈;
import { useVbenModal, VbenButton, VbenButtonGroup } from '@vben/common-ui';
import { openWindow } from '@vben/utils';

View File

@@ -24,6 +24,7 @@ const tenantEnable = isTenantEnable();
const value = ref<number>(accessStore.visitTenantId ?? undefined); // 当前访问的租户 ID
const tenants = ref<SystemTenantApi.Tenant[]>([]); // 租户列表
// TODO @xingyu这个有可能 3 端复用么?
async function handleChange(id: SelectValue) {
// 设置访问租户 ID
accessStore.setVisitTenantId(id as number);