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