Explorar o código

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

xiansin %!s(int64=3) %!d(string=hai) anos
pai
achega
daf87e27a4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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('请输入两个参数');
                 }