fix: title用json.dumps整个字符串避免空值破坏JSON
This commit is contained in:
parent
c3cad2140f
commit
8173fb603b
@ -11,7 +11,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "产品折扣设置 - {{json.dumps(info.name, ensure_ascii=False) if info.name else ''}}",
|
"text": {{json.dumps('产品折扣设置 - ' + (info.name or ''), ensure_ascii=False)}},
|
||||||
"fontSize": "16px",
|
"fontSize": "16px",
|
||||||
"fontWeight": "600",
|
"fontWeight": "600",
|
||||||
"color": "#F1F5F9",
|
"color": "#F1F5F9",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user