| 123456789101112131415161718192021222324252627 |
- <template>
- </template>
- <script setup lang="ts">
- import {huoQuXiangMu} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
- import {onMounted} from "vue";
- import sleep from "@/utils/sleep";
- onMounted(async () => {
- huoQuXiangMu('12', '73').then((res) => {
- console.log('12 then', res)
- }).catch((res) => {
- console.log('12 catch', res)
- })
- await sleep(500)
- huoQuXiangMu('23', '73').then((res) => {
- console.log('23 then', res)
- }).catch((res) => {
- console.log('23 catch', res)
- })
- })
- </script>
|