refactor: 版权、登录必读和租户选择

This commit is contained in:
caiyuchao
2025-07-09 14:33:23 +08:00
parent 56a1d166ed
commit 04017748a5
4 changed files with 8 additions and 14 deletions

View File

@@ -7,25 +7,18 @@ import { computed, onMounted, ref, watch } from 'vue';
import { useAccess } from '@vben/access';
import { AuthenticationLoginExpiredModal, useVbenModal } from '@vben/common-ui';
import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
import { isTenantEnable, useTabs, useWatermark } from '@vben/hooks';
import {
AntdProfileOutlined,
BookOpenText,
CircleHelp,
MdiGithub,
} from '@vben/icons';
import { AntdProfileOutlined } from '@vben/icons';
import {
BasicLayout,
Help,
LockScreen,
Notification,
TenantDropdown,
UserDropdown,
} from '@vben/layouts';
import { preferences } from '@vben/preferences';
import { useAccessStore, useUserStore } from '@vben/stores';
import { formatDateTime, openWindow } from '@vben/utils';
import { formatDateTime } from '@vben/utils';
import { message } from 'ant-design-vue';
@@ -41,6 +34,8 @@ import { router } from '#/router';
import { useAuthStore } from '#/store';
import LoginForm from '#/views/_core/authentication/login.vue';
import TenantDropdown from './components/tenant-dropdown.vue';
const userStore = useUserStore();
const authStore = useAuthStore();
const accessStore = useAccessStore();
@@ -52,7 +47,7 @@ const notifications = ref<NotificationItem[]>([]);
const unreadCount = ref(0);
const showDot = computed(() => unreadCount.value > 0);
const [HelpModal, helpModalApi] = useVbenModal({
const [HelpModal] = useVbenModal({
connectedComponent: Help,
});

View File

@@ -21,7 +21,7 @@ const accessStore = useAccessStore();
const tenantEnable = isTenantEnable();
const value = ref<number>(accessStore.visitTenantId ?? undefined); // 当前访问的租户 ID
const value = ref<number | undefined>(accessStore.visitTenantId ?? undefined); // 当前访问的租户 ID
const tenants = ref<SystemTenantApi.Tenant[]>([]); // 租户列表
// TODO @xingyu这个有可能 3 端复用么?

View File

@@ -28,7 +28,7 @@ export const overridesPreferences = defineOverridesPreferences({
fixed: false,
},
copyright: {
companyName: import.meta.env.VITE_APP_TITLE,
companyName: '深圳千通科技有限公司',
companySiteLink: 'https://www.agrandtech.com.cn',
date: '2025',
},

View File

@@ -14,7 +14,6 @@ import { useVbenForm } from '@vben-core/form-ui';
import { VbenButton, VbenCheckbox } from '@vben-core/shadcn-ui';
import Title from './auth-title.vue';
import DocLink from './doc-link.vue';
import ThirdPartyLogin from './third-party-login.vue';
interface Props extends AuthenticationProps {
@@ -198,6 +197,6 @@ defineExpose({
</slot>
<!-- 萌新必读 -->
<DocLink />
<!-- <DocLink /> -->
</div>
</template>