优化提现订单跳转与按钮样式
This commit is contained in:
@@ -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 } : {}),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user