chat聊天功能
This commit is contained in:
@@ -267,8 +267,8 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
||||
state.allBoardData.colorBoards = []
|
||||
}
|
||||
let navListData = (workspace as any).state.projectList
|
||||
let index = navListData.findIndex((item:any) => item.value === data);
|
||||
navListData[index].select = false
|
||||
// let index = navListData.findIndex((item:any) => item.value === data);
|
||||
// navListData[index].select = false
|
||||
},
|
||||
|
||||
createModularData(state){
|
||||
@@ -341,7 +341,7 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
||||
actions:{
|
||||
setAllBoardData({ state,commit },data) {
|
||||
// commit('increment'); // 提交 mutation
|
||||
let navListData = JSON.parse(JSON.stringify((workspace as any).state.projectList))
|
||||
// let navListData = JSON.parse(JSON.stringify((workspace as any).state.projectList))
|
||||
let str:any = data.type
|
||||
let currentState = false
|
||||
if(str == 'moodBoard'){
|
||||
@@ -361,13 +361,13 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
||||
state.allBoardData.colorBoards = state.colorBoards
|
||||
if(state.colorBoards.length > 0)currentState = true
|
||||
}
|
||||
let index = navListData.findIndex((item:any) => item.value === str);
|
||||
if(currentState){
|
||||
navListData[index].select = true
|
||||
}else{
|
||||
navListData[index].select = false
|
||||
}
|
||||
commit('setProjectList',navListData)
|
||||
// let index = navListData.findIndex((item:any) => item.value === str);
|
||||
// if(currentState){
|
||||
// navListData[index].select = true
|
||||
// }else{
|
||||
// navListData[index].select = false
|
||||
// }
|
||||
// commit('setProjectList',navListData)
|
||||
},
|
||||
setModularData({ state,commit },data){
|
||||
let navListData = JSON.parse(JSON.stringify((workspace as any).state.projectList)) as any
|
||||
@@ -388,17 +388,17 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
||||
}else if(data.type == 'patternMaking3D'){
|
||||
value = homeData.patternMaking3D
|
||||
}
|
||||
let index = navListData.findIndex((item:any) => item.value === data.type);
|
||||
if(
|
||||
(value == null || value?.length == 0) ||
|
||||
(data.type == 'design' && !value.userlikeGroupId)
|
||||
){
|
||||
navListData[index].select = false
|
||||
}else{
|
||||
navListData[index].select = true
|
||||
}
|
||||
// let index = navListData.findIndex((item:any) => item.value === data.type);
|
||||
// if(
|
||||
// (value == null || value?.length == 0) ||
|
||||
// (data.type == 'design' && !value.userlikeGroupId)
|
||||
// ){
|
||||
// navListData[index].select = false
|
||||
// }else{
|
||||
// navListData[index].select = true
|
||||
// }
|
||||
state.modularData[data.type] = value
|
||||
commit('setProjectList',navListData)
|
||||
// commit('setProjectList',navListData)
|
||||
},
|
||||
getProjectData({ state,commit },str){
|
||||
return new Promise((resolve,reject) => {
|
||||
|
||||
Reference in New Issue
Block a user