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
|
||||
|
||||
Reference in New Issue
Block a user