second commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user