在题目详情页显示数据统计

This commit is contained in:
2025-10-03 15:28:25 +08:00
parent e462bd0864
commit 8ede959fc2
13 changed files with 132 additions and 99 deletions

View File

@@ -25,10 +25,7 @@ export const useAIStore = defineStore("ai", () => {
const mdContent = ref("")
async function fetchDetailsData(
start: string,
end: string,
) {
async function fetchDetailsData(start: string, end: string) {
loading.details = true
const res = await getAIDetailData(start, end)
detailsData.start = res.data.start
@@ -42,10 +39,7 @@ export const useAIStore = defineStore("ai", () => {
loading.details = false
}
async function fetchWeeklyData(
end: string,
duration: string,
) {
async function fetchWeeklyData(end: string, duration: string) {
loading.weekly = true
const res = await getAIWeeklyData(end, duration)
weeklyData.value = res.data