fix: int(params_kw._is_mobile or 0) 防止NoneType
This commit is contained in:
parent
0c5fdadd89
commit
6759a84ea1
@ -83,7 +83,7 @@
|
|||||||
"target":"PopupWindow",
|
"target":"PopupWindow",
|
||||||
"popup_options":{
|
"popup_options":{
|
||||||
"title":"{{llm.name}}",
|
"title":"{{llm.name}}",
|
||||||
{% if int(params_kw._is_mobile) %}
|
{% if int(params_kw._is_mobile or 0) %}
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%"
|
"height": "100%"
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@ -82,7 +82,7 @@
|
|||||||
"target":"PopupWindow",
|
"target":"PopupWindow",
|
||||||
"popup_options":{
|
"popup_options":{
|
||||||
"title":"{{llm.name}}",
|
"title":"{{llm.name}}",
|
||||||
{% if int(params_kw._is_mobile) %}
|
{% if int(params_kw._is_mobile or 0) %}
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%"
|
"height": "100%"
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user