接入两个接口
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user