瀏覽代碼

数据延迟

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);