瀏覽代碼

fix(controller): 三通弯计算(水平)
修正

xiansin 3 年之前
父節點
當前提交
9c45164bb0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/formula/santongwanHorizontal.vue

+ 1 - 1
pages/formula/santongwanHorizontal.vue

xqd
@@ -74,7 +74,7 @@
                 /**
                  结果=次边高×1.414
                  */
-                this.rules.result.value = this.formData.cibianheight * 1.414
+                this.rules.result.value = this.formData.cibianheight * (this.$util.tan(45/2)+1)
                 this.roundRules();
                 this.$u.toast("请参考计算示意图")
             },