2023-11-9-dist

This commit is contained in:
X1627315083
2023-11-09 13:49:10 +08:00
parent 4199833607
commit 897f61a3c9
18 changed files with 146 additions and 83 deletions

View File

@@ -75,28 +75,36 @@ import { useStore } from "vuex";
export default defineComponent({
components:{MoodTemplate},
setup() {
const store = useStore();
const store:any = useStore();
let sketch:any = ref([[],[],[]])
let sketchList = ref([])
let sketchList:any = ref([])
let allBoardData:any = computed(()=>{
return store.state.UploadFilesModule.allBoardData})
return {
store,
allBoardData,
sketch,
sketchList,
}
},
data(){
return{
asda:{},
}
},
watch: {
allBoardData:{
handler(newVal:any,oldVal:any){
this.sketchList = []
// this.sketch = [[],[],[]]
console.log(111);
this.sketchList = this.allBoardData.sketchboardFiles
this.setSketch()
}
}
},
immediate: true
},
},
mounted () {
},
@@ -110,7 +118,6 @@ export default defineComponent({
sketch1.num = 0
sketch2.num = 1
sketch3.num = 2
console.log(this.sketchList);
for (let i = 0; i < this.sketchList.length; i++) {
let arr = [sketch1,sketch2,sketch3]
arr.sort((a,b)=>{