feat: 首页调整

This commit is contained in:
rd
2025-08-20 18:17:23 +08:00
parent 0c941b0c66
commit 6e3158cdb4
19 changed files with 446 additions and 131 deletions

View File

@ -7,7 +7,6 @@ import router from '@/router';
import { useUserStore } from '@/stores';
import { useEnterpriseStore } from '@/stores/modules/enterprise';
import { useSidebarStore } from '@/stores/modules/side-bar';
import { useSharedDataStore } from '@/stores/modules/share-data';
// 登录
export function goUserLogin(query?: any) {
@ -38,11 +37,8 @@ export async function handleUserLogin() {
// 首页
export function handleUserHome(params?: any) {
if (params) {
const sharedDataStore = useSharedDataStore();
sharedDataStore.setRouteParams(params);
}
router.push({ name: 'Home', params });
router.push({ name: 'Home' });
}
// 登出处理