diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue
index 4578727..c193dd8 100644
--- a/src/components/BowTarget.vue
+++ b/src/components/BowTarget.vue
@@ -1,5 +1,5 @@
@@ -185,7 +192,7 @@ const simulShoot2 = async () => {
-
+
diff --git a/src/components/TestDistance.vue b/src/components/TestDistance.vue
index 8c4f516..62f89e0 100644
--- a/src/components/TestDistance.vue
+++ b/src/components/TestDistance.vue
@@ -20,6 +20,7 @@ const arrow = ref({});
const power = ref(0);
const distance = ref(0);
const debugInfo = ref("");
+const showsimul = ref(false);
async function onReceiveMessage(messages = []) {
messages.forEach((msg) => {
@@ -39,6 +40,9 @@ const simulShoot = async () => {
onMounted(() => {
checkConnection();
uni.$on("socket-inbox", onReceiveMessage);
+ const accountInfo = uni.getAccountInfoSync();
+ const envVersion = accountInfo.miniProgram.envVersion;
+ if (envVersion !== "release") showsimul.value = true;
});
onUnmounted(() => {
@@ -84,7 +88,12 @@ onUnmounted(() => {
-
+
模拟射箭