2023-11-9-dist
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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