diff --git a/src/components/capsuleChart/index.vue b/src/components/capsuleChart/index.vue
index ab9726a..d687c8b 100644
--- a/src/components/capsuleChart/index.vue
+++ b/src/components/capsuleChart/index.vue
@@ -15,11 +15,15 @@
-
{{ unit }}
+
{{ unit }}
单位
+
+
+
+
@@ -56,7 +60,7 @@ export default {
const maxValue = Math.max(...capsuleData)
- this.capsuleData = capsuleData.map(v => v / maxValue)
+ this.capsuleData = capsuleData.map(v => maxValue ? v / maxValue : 0)
const oneSixth = maxValue / 5
@@ -134,5 +138,13 @@ export default {
flex-direction: row;
justify-content: space-between;
}
+
+ .for-solt {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ top: 0px;
+ left: 0px;
+ }
}