2023-11-9-dist
This commit is contained in:
@@ -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)=>{
|
||||
|
||||
Reference in New Issue
Block a user