Selaa lähdekoodia

修复输入编码充电页面空白的问题

zuy 9 kuukautta sitten
vanhempi
säilyke
977ab6b1aa
1 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 7 3
      src/pages-charge/codeing/codeing.vue

+ 7 - 3
src/pages-charge/codeing/codeing.vue

@@ -29,7 +29,11 @@
 </template>
 
 <script setup lang="ts">
-import {fetchStationByConnectorIdOrShortId, fetchStationDetailByConnectorId} from "@/api/charge";
+import {
+  fetchStationByConnectorIdOrShortId,
+  fetchStationDetailByConnectorId,
+  fetchStationDetailByShortId
+} from "@/api/charge";
 import { ref } from "vue";
 import { scanCode } from "../../utils/code";
 import { to } from "../../utils/navigate";
@@ -48,10 +52,10 @@ const submit = () => {
   uni.showLoading({
     title: "加载中",
   });
-  fetchStationDetailByConnectorId(value.value)
+  fetchStationDetailByShortId(value.value)
     .then(() => {
       uni.hideLoading();
-      to(`/pages-charge/appointment/appointment?connectorId=${value.value}`);
+      to(`/pages-charge/appointment/appointment?sn=${value.value}`);
     })
     .catch((err) => {
       value.value = ''