From 277e0a7aec55ca0ecdd08f27cf55ebc322b30333 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 17 Jul 2026 15:48:44 +0800 Subject: [PATCH] fix(accounting): use single quotes in CSS selector to avoid JSON escaping issues --- wwwroot/billing.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/billing.ui b/wwwroot/billing.ui index ea618bd..33e67b4 100644 --- a/wwwroot/billing.ui +++ b/wwwroot/billing.ui @@ -70,7 +70,7 @@ "wid": "self", "event": "click", "actiontype": "script", - "script": "var sd=document.querySelector('[name=\"start_date\"]'),ed=document.querySelector('[name=\"end_date\"]');if(!sd||!ed||!sd.value||!ed.value){bricks.show_error({title:'提示',message:'请先选择日期范围'});return;}var u='{{download_url}}?start_date='+encodeURIComponent(sd.value)+'&end_date='+encodeURIComponent(ed.value);fetch(u,{credentials:'include'}).then(function(r){return r.json()}).then(function(d){if(d.status!=='ok'){bricks.show_error({title:'下载失败',message:d.data.message});return;}var b=atob(d.data.content),n=b.length,arr=new Uint8Array(n);for(var i=0;i