parent
1285218eea
commit
aaa0967f24
|
@ -2,7 +2,7 @@
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { Echart } from '@/components/Echart';
|
import { Echart } from '@/components/Echart';
|
||||||
import { getReqChartBy30 } from '@/api/new-ai/statictic';
|
import { getReqChartBy30 } from '@/api/new-ai/statictic';
|
||||||
|
import {dayjs} from 'element-plus'
|
||||||
const options = ref({});
|
const options = ref({});
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
const xData: any = [];
|
const xData: any = [];
|
||||||
const yData: any = [];
|
const yData: any = [];
|
||||||
data.forEach((i: any) => {
|
data.forEach((i: any) => {
|
||||||
xData.push(i.date);
|
xData.push(dayjs(i.date).format('YYYY-MM-DD'));
|
||||||
yData.push(i.tokens);
|
yData.push(i.tokens);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue