feat(admin-js): auto open receipt details for payment/refund hashes

This commit is contained in:
萝卜
2026-03-16 15:35:06 +08:00
parent 7181cfbaf8
commit a67611f84d
3 changed files with 27 additions and 4 deletions

View File

@@ -55,8 +55,13 @@
}
var h = String(window.location.hash || '');
if (h === '#add-payment-receipt') {
var d = qs('details#add-payment-receipt');
var map = {
'#add-payment-receipt': 'details#add-payment-receipt',
'#refund-receipts': 'details#add-refund-receipt',
};
if (map[h]) {
var d = qs(map[h]);
if (d) {
d.open = true;
}