|
|
@@ -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 = ''
|