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