bug修复

This commit is contained in:
kron
2026-02-07 11:59:21 +08:00
parent 6101cd80ce
commit 715e614f9d
8 changed files with 22 additions and 22 deletions

View File

@@ -15,8 +15,8 @@ const data = ref({
const players = ref([]);
onLoad(async (options) => {
if (!options.id) return;
battleId.value = options.id || "59090720979554304";
if (!options.battleId) return;
battleId.value = options.battleId || "59090720979554304";
const result = await getBattleAPI(battleId.value);
data.value = result;
if (result.mode > 3) {
@@ -43,11 +43,11 @@ onLoad(async (options) => {
});
const checkBowData = (selected) => {
if (data.value.way === 1) {
if (data.value.mode <= 3) {
uni.navigateTo({
url: `/pages/team-bow-data?battleId=${battleId.value}&selected=${selected}`,
});
} else if (data.value.way === 2) {
} else {
uni.navigateTo({
url: `/pages/melee-bow-data?battleId=${battleId.value}`,
});