fix
This commit is contained in:
@@ -80,7 +80,8 @@ export default defineComponent({
|
||||
components:{MoodTemplate},
|
||||
setup() {
|
||||
let sketch:any = ref([[],[],[]])
|
||||
let sketchList = ref([])
|
||||
let sketchList:any = computed(()=>{
|
||||
return store.state.UploadFilesModule.showSketchboard})
|
||||
const store = useStore();
|
||||
let allBoardData:any = computed(()=>{return store.state.UploadFilesModule.allBoardData})
|
||||
let likeDesignCollectionList : any = computed(()=>{return store.state.HomeStoreModule.likeDesignCollectionList})
|
||||
@@ -96,9 +97,9 @@ export default defineComponent({
|
||||
watch: {
|
||||
allBoardData:{
|
||||
handler(newVal:any,oldVal:any){
|
||||
this.sketchList = []
|
||||
// this.sketchList = []
|
||||
// this.sketch = [[],[],[]]
|
||||
this.sketchList = this.allBoardData.sketchboardFiles
|
||||
// this.sketchList = this.allBoardData.sketchboardFiles
|
||||
this.setSketch()
|
||||
},
|
||||
immediate: true
|
||||
|
||||
@@ -178,7 +178,6 @@ export default defineComponent({
|
||||
let sketchList = this.store.state.UploadFilesModule.sketchboard
|
||||
let arr:any = []
|
||||
sketchList.forEach((item:any) => {
|
||||
console.log(item);
|
||||
let obj = {
|
||||
designType:item.resData.designType,
|
||||
isPin:item.pin ? 1 : 0,
|
||||
@@ -193,8 +192,6 @@ export default defineComponent({
|
||||
.then((rv: any) => {
|
||||
this.isShowMark = false
|
||||
this.store.commit('clearAllId')
|
||||
console.log(rv,data);
|
||||
|
||||
this.store.commit('setShowSketchboard',rv)
|
||||
GO.id = 0
|
||||
this.showCollectionModal =false
|
||||
|
||||
@@ -162,10 +162,11 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
|
||||
state.sketchboard = [...state.sketchboardFiles,...state.sketchGenerateFiles,...state.sketchMaterialFiles]
|
||||
},
|
||||
setShowSketchboard(state,files){
|
||||
console.log(files);
|
||||
|
||||
state.showSketchboard = files
|
||||
},
|
||||
clearShowSketchboard(state,files){
|
||||
state.showSketchboard = []
|
||||
},
|
||||
setPrintboardFile(state,files){
|
||||
state.printboardFiles = files
|
||||
state.printboard = [...state.printboardFiles,...state.printGenerateFiles,...state.printMaterialFiles]
|
||||
|
||||
@@ -140,12 +140,12 @@ function removeDiv(element){
|
||||
}
|
||||
}
|
||||
const openGuide = () =>{
|
||||
driverObj__.drive();
|
||||
// driverObj__.drive();
|
||||
store = useStore()
|
||||
// driverObj__.moveTo(18);
|
||||
let data = {
|
||||
index:driverIndex__,
|
||||
driver:true,
|
||||
// driver:true,
|
||||
}
|
||||
store?.commit("setGuide", data);
|
||||
// driverObj__.moveNext();
|
||||
|
||||
@@ -824,6 +824,7 @@ export default defineComponent({
|
||||
}]:[]
|
||||
};
|
||||
this.store.commit("setAllBoardDataChoose", collectionData);
|
||||
this.store.commit("setShowSketchboard", collectionData.sketchboardFiles);
|
||||
this.store.commit(
|
||||
"setDesignCollectionId",
|
||||
data.collection.collectionId
|
||||
|
||||
Reference in New Issue
Block a user