浏览代码

fix(controller): 直角计算(水平)修正

xiansin 3 年之前
父节点
当前提交
daf87e27a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/formula/rightAngleHorizontal.vue

+ 1 - 1
pages/formula/rightAngleHorizontal.vue

xqd
@@ -67,7 +67,7 @@
                 this.initRules();
                 /*结果=边高×1.414*/
                 if(this.formData.biangao && this.formData.dikuan){
-                    this.rules.result.value = this.formData.biangao * 1.414;
+                    this.rules.result.value = this.formData.biangao * (this.$util.tan(45 / 2) + 1);
                 }else{
                     this.$u.toast('请输入两个参数');
                 }