diff --git a/.prettierignore b/.prettierignore index de05607..6f79715 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ **/*.md +**/*.vue diff --git a/.prettierrc b/.prettierrc index 49955e2..a93b0d6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,15 @@ { "semi": false, "singleQuote": true, - "trailingComma": "none" + "trailingComma": "none", + "overrides": [ + { + "files": "*.vue", + "options": { + "parser": "vue", + "htmlWhitespaceSensitivity": "ignore", + "vueIndentScriptAndStyle": false + } + } + ] } diff --git a/docs/.vitepress/theme/components/appendix/data/ABTestingDemo.vue b/docs/.vitepress/theme/components/appendix/data/ABTestingDemo.vue index fb72f84..2fd1617 100644 --- a/docs/.vitepress/theme/components/appendix/data/ABTestingDemo.vue +++ b/docs/.vitepress/theme/components/appendix/data/ABTestingDemo.vue @@ -197,9 +197,7 @@
💡 - P值 < 0.05 表示结果统计显著,说明差异不太可能是随机产生的 + P值 < 0.05 表示结果统计显著,说明差异不太可能是随机产生的
@@ -464,7 +462,7 @@ const targetRate = computed( ) const absoluteDifference = computed( - => (targetRate.value - baselineRate.value).toFixed(2) + () => (targetRate.value - baselineRate.value).toFixed(2) ) const estimatedDays = computed(() => { @@ -477,8 +475,8 @@ const estimatedDays = computed(() => { function calculateSampleSize() { const p1 = baselineRate.value / 100 const p2 = targetRate.value / 100 - constZa = 1.96 // alpha = 0.05对应的z值 - constZb = 0.84 // power = 0.8对应的z值 + const constZa = 1.96 // alpha = 0.05对应的z值 + const constZb = 0.84 // power = 0.8对应的z值 // 合并标准差 const pBar = (p1 + p2) / 2