搜索结果列表页面开发
This commit is contained in:
16
src/stores/UserSetting/Organization.ts
Normal file
16
src/stores/UserSetting/Organization.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import type { OrgItem } from '@/stores/UserSetting/type';
|
||||
interface OrgState{
|
||||
orgList:Array<OrgItem>;
|
||||
}
|
||||
export const useOrganizationStore = defineStore('organizationState', {
|
||||
state: ():OrgState => ({
|
||||
orgList: []// 组织列表
|
||||
}),
|
||||
getters: {},
|
||||
actions: {
|
||||
getOrgList() { // 获取个人的组织列表
|
||||
return [];
|
||||
}
|
||||
}
|
||||
});
|
||||
11
src/stores/UserSetting/type.ts
Normal file
11
src/stores/UserSetting/type.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export interface OrgItem{//组织
|
||||
id: string;// id
|
||||
name: string;//名字
|
||||
namespace?: string;
|
||||
avatar: string; // 个人头像
|
||||
description?: string;//描述
|
||||
memberCount?: number;//成员
|
||||
type:String;//类型
|
||||
role:String|Number;//角色
|
||||
[key:string]:any;
|
||||
}
|
||||
Reference in New Issue
Block a user