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

@ -0,0 +1,20 @@
import { defineStore } from 'pinia';
interface SharedDataState {
routeParams: Record<string, any> | null;
}
export const useSharedDataStore = defineStore('sharedData', {
state: (): SharedDataState => ({
routeParams: null,
}),
actions: {
setRouteParams(params: Record<string, any>) {
this.routeParams = params;
},
clearRouteParams() {
this.routeParams = null;
},
},
});

View File

@ -1,7 +1,3 @@
/*
* @Author: RenXiaoDong
* @Date: 2025-06-19 01:45:53
*/
import { defineStore } from 'pinia';
import type { TabBarState, TagProps, RouteLocationNormalized } from './types';