Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
🐞 fix(ShowPath): 满足TS
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeAL committed Jun 22, 2024
1 parent e1ea980 commit 8fa3771
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/ShowPath.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
import { CSSProperties, onMounted, ref } from "vue";
import { BusOutline, ArrowForward } from "@vicons/ionicons5";
import { invoke } from "@tauri-apps/api";
import { useLoadingBar } from "naive-ui";
Expand Down Expand Up @@ -61,12 +61,12 @@ const get_the_path = async () => {
result.value = await invoke("search_the_shortest_path", {
start: start_stop.value,
target: target_stop.value,
}).catch((err) => console.log(err));
}).catch((err) => console.log(err)) as string;
} else {
result.value = await invoke("search_the_min_transfer_path", {
start: start_stop.value,
target: target_stop.value,
}).catch((err) => console.log(err));
}).catch((err) => console.log(err)) as string;
}
// console.log(result);
bus_path.value = JSON.parse(result.value);
Expand Down

0 comments on commit 8fa3771

Please sign in to comment.