mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 16:48:45 +08:00
AdminRefundDialog already implements a `requireForce` prop that renders the force checkbox and blocks submit until it is checked, but AdminOrdersView never consumed `require_force` from the refund response nor bound the prop, so the checkbox could never render. Admins hitting a require-force case (for example a user who spent their balance after requesting the refund) only saw an error toast and had no way to complete the refund from the UI. Keep the dialog open when the backend answers `require_force`, surface the checkbox and the backend warning, and reset the flag whenever the dialog is opened or closed. Verified with `npm run typecheck` (vue-tsc --noEmit, clean).