feat: Conversations封装、首页开发

This commit is contained in:
rd
2025-08-19 18:01:30 +08:00
parent b717c7629f
commit c0fbf501e1
19 changed files with 594 additions and 29 deletions

View File

@ -7,6 +7,7 @@ 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) {
@ -36,8 +37,12 @@ export async function handleUserLogin() {
}
// 首页
export function handleUserHome() {
router.push({ name: 'Home' });
export function handleUserHome(params?: any) {
if (params) {
const sharedDataStore = useSharedDataStore();
sharedDataStore.setRouteParams(params);
}
router.push({ name: 'Home', params });
}
// 登出处理