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

@@ -98,11 +98,11 @@ export default defineComponent({
handler(newVal:any,oldVal:any){
this.sketchList = []
// this.sketch = [[],[],[]]
console.log(111);
this.sketchList = this.allBoardData.sketchboardFiles
this.setSketch()
}
}
},
immediate: true
},
},
methods: {
setSketch(){

View File

@@ -154,6 +154,7 @@ import Habit from "@/component/Detail/habit.vue";
import { Https } from "@/tool/https";
import { Modal, message } from "ant-design-vue";
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
import { useStore } from "vuex";
import { useI18n } from "vue-i18n";
export default defineComponent({
components: {
@@ -161,9 +162,11 @@ export default defineComponent({
Habit,
},
setup(){
const store = useStore();
const {t} = useI18n()
const {locale} = useI18n()
return {
store,
t,
locale
}

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)=>{