fix: int(params_kw._is_mobile or 0) 防止NoneType

This commit is contained in:
yumoqing 2026-07-06 16:59:21 +08:00
parent 0c5fdadd89
commit 6759a84ea1
2 changed files with 2 additions and 2 deletions

View File

@ -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 %}

View File

@ -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 %}