소스 검색

数据延迟

lifanagju_citu 9 달 전
부모
커밋
15e4b9b8e6
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/components/pay/index.vue

+ 4 - 2
src/components/pay/index.vue

@@ -216,8 +216,10 @@ const payStatus = async () => {
     if ((data?.status - 0) === 10) {
       // 支付成功
       if (timer.value) clearInterval(timer.value); timer.value = null
-      const query = { hire: true }
-      router.push({ path: '/recruit/enterprise/position', query }) // 返回到众聘页面
+      setTimeout(() => {
+        const query = { hire: true }
+        router.push({ path: '/recruit/enterprise/position', query }) // 返回到众聘页面
+      }, 500);
       setTimeout(() => {
         Snackbar.success('付款成功')
       }, 1000);