second commit

This commit is contained in:
2025-12-25 18:33:15 +08:00
parent 78407f1cbd
commit 6a6ddba71a
34 changed files with 527 additions and 1226 deletions

View File

@@ -22,7 +22,7 @@
<script setup>
import { nextTick, onMounted, onUnmounted, ref } from 'vue'
// import { getHistory } from '@/api/model'
import { getHistory } from '@/api/model'
import axios from 'axios'
const emit = defineEmits([ 'changeDialog' ])
@@ -34,15 +34,15 @@ const show = ref(true)
let resizeObserver = null
const initList = () => {
// axios.get(getHistory, {}, {
// headers: {
// 'Content-Type': 'application/json'
// }
// }).then((res) => {
// if(res.status === 200) {
// list.value = res.data.reverse()
// }
// })
axios.get(getHistory, {}, {
headers: {
'Content-Type': 'application/json'
}
}).then((res) => {
if(res.status === 200) {
list.value = res.data.reverse()
}
})
}
const toggleExpand = () => {
collapse.value = !collapse.value