bug修复
This commit is contained in:
@@ -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}`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user