Explorar o código

修正录入框附件判断不严谨

Ben hai 6 días
pai
achega
5d4aadc1a6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      js/vue/ss-components.js

+ 2 - 2
js/vue/ss-components.js

@@ -489,7 +489,7 @@ import { EVEN_VAR } from "./EventBus.js";
       }
 
       // 如果有附件按钮,为按钮留出空间
-      if (this.fj || this.param) {
+      if (this.fj || (this.param&&this.param.button)) {//加上&&this.param.button条件 Ben(20251221)
         mainTextareaStyle.paddingRight = '75px';
         
       }
@@ -518,7 +518,7 @@ import { EVEN_VAR } from "./EventBus.js";
               autocomplete: "off",
             }),
             // 附件按钮(优先使用 param,兼容旧的 fj)
-            this.param || this.fj
+            this.fj||(this.param&&this.param.button)//加上&&this.param.button条件 Ben(20251221)
               ? h(
                   "button",
                   {