This commit is contained in:
X1627315083
2023-11-29 10:33:13 +08:00
parent 4daa21d46b
commit b908fbe732
5 changed files with 10 additions and 10 deletions

View File

@@ -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

View File

@@ -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