添加排位赛记录查询
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user