소스 검색

跳转到充值记录

lifanagju_citu 8 달 전
부모
커밋
6c79518e1e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/components/personalRecharge/initPay.vue

+ 5 - 1
src/components/personalRecharge/initPay.vue

@@ -55,6 +55,10 @@ import { setWalletRecharge } from '@/api/recruit/personal/myWallet.js'
 import { onUnmounted, ref, nextTick, watch } from 'vue'
 const emit = defineEmits(['payTypeChange', 'paySuccess', 'stopInterval'])
 const props = defineProps({
+  returnUrl: {
+    type: String,
+    default: '/recruit/personal/personalCenter/wallet'
+  },
   info: {
     type: Object,
     default: () => ({ id: ''})
@@ -101,7 +105,7 @@ const payStatus = async () => {
         // getUnpaidOrderList() // 重新创建新的支付订单
         // 返回指定页面
         if (route.fullPath === props.returnUrl) router.go(0)
-        else if (props.returnUrl) router.push(props.returnUrl)
+        else if (props.returnUrl) router.push(props.returnUrl) // 跳转到充值记录
         Snackbar.success('支付成功')
       }, 2000);
     }