feat: Conversations封装、首页开发
This commit is contained in:
@ -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 });
|
||||
}
|
||||
|
||||
// 登出处理
|
||||
|
||||
Reference in New Issue
Block a user