添加排位赛记录查询

This commit is contained in:
kron
2025-06-11 23:57:03 +08:00
parent 6614e44688
commit 749796bdd9
3 changed files with 102 additions and 56 deletions

View File

@@ -4,9 +4,8 @@ import { onLoad } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue";
import BattleHeader from "@/components/BattleHeader.vue";
import Avatar from "@/components/Avatar.vue";
import { getBattleDetailAPI } from "@/apis";
const id = ref("");
const type = ref("");
const data = {
blueTeam: {
name: "选手1",
@@ -44,9 +43,11 @@ const result = ref([
},
]);
onLoad((options) => {
type.value = options.type;
id.value = options.id;
onLoad(async (options) => {
if (options.id) {
const result = await getBattleDetailAPI(options.id);
console.log(11111, result);
}
});
</script>