|
@@ -16,6 +16,7 @@ export interface IUserState {
|
|
|
userId: string;
|
|
|
group: string;
|
|
|
projectId: string;
|
|
|
+ projectName: string;
|
|
|
projects: any[];
|
|
|
avatar: string;
|
|
|
introduction: string;
|
|
@@ -30,6 +31,7 @@ class User extends VuexModule implements IUserState {
|
|
|
public userId = "06328a53c69a41bb8f5bb1a552c6e8d6";
|
|
|
public group = "WD";// 集团
|
|
|
public projectId = "Pj4403070003";// 深圳龙岗万达广场
|
|
|
+ public projectName = "深圳龙岗万达广场";// 深圳龙岗万达广场
|
|
|
public projects: any[] = [{
|
|
|
id: "Pj4403070003",
|
|
|
name: "深圳龙岗万达广场"
|
|
@@ -59,6 +61,11 @@ class User extends VuexModule implements IUserState {
|
|
|
}
|
|
|
|
|
|
@Mutation
|
|
|
+ private SET_PROJECTNAME(projectName: string) {
|
|
|
+ this.projectName = projectName;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Mutation
|
|
|
private SET_PROJECTS(projects: any[]) {
|
|
|
this.projects = projects;
|
|
|
}
|