diff --git a/src/components/DataHeader/index.vue b/src/components/DataHeader/index.vue index f51cbe9..88151d5 100644 --- a/src/components/DataHeader/index.vue +++ b/src/components/DataHeader/index.vue @@ -9,7 +9,7 @@ defineProps({ }, }); -const data = ref([ +const datalist = ref([ { link: "count", title: "任务总数", @@ -71,7 +71,7 @@ async function getData() { approvedCount, notGoCount, } = data; - data.value = [ + let newdata=[ { link: "count", title: "任务总数", @@ -109,14 +109,17 @@ async function getData() { title: "小结重复数", count: repeatedNodules, }, - ]; + ] + datalist.value =newdata ; +console.log(datalist.value) } } -1 +