接入两个接口

This commit is contained in:
kron
2025-08-13 17:11:30 +08:00
parent f388270fff
commit cf318bc552
5 changed files with 57 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ import { onShow } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue";
import EditOption from "@/components/EditOption.vue";
import SButton from "@/components/SButton.vue";
import { getPractiseDataAPI } from "@/apis";
import { getPointBookDataAPI } from "@/apis";
const expandIndex = ref(0);
const bowType = ref({});
@@ -60,7 +60,7 @@ const toEditPage = () => {
}
};
onShow(async () => {
const result = await getPractiseDataAPI();
const result = await getPointBookDataAPI();
if (result) {
days.value = result.total_day || 0;
arrows.value = result.total_arrow || 0;