优化提现订单跳转与按钮样式

This commit is contained in:
yml2213
2026-08-16 20:08:19 +08:00
parent 58f11b2043
commit f48da14ed2
5 changed files with 84 additions and 15 deletions
@@ -14,6 +14,7 @@ const router = useRouter()
const props = defineProps<{
modelValue: boolean
withdrawal: WithdrawalDetail | null
returnQuery?: Record<string, string>
}>()
const emit = defineEmits<{
@@ -29,7 +30,10 @@ function goToOwnerOrders() {
const keyword = props.withdrawal.user_phone?.trim() || String(props.withdrawal.user_id || '')
void router.push({
path: adminPath('orders'),
query: keyword ? { keyword } : {},
query: {
...props.returnQuery,
...(keyword ? { keyword } : {}),
},
})
}