邓洁: 修改低报
This commit is contained in:
@@ -42,7 +42,7 @@ function setValue() {
|
||||
value.value.style.width = `${width}px`;
|
||||
let flag = (params.wp.point * length.value.offsetWidth) / params.wp.max;
|
||||
point.value.style.left = `${flag}px`;
|
||||
if (width >= flag) {
|
||||
if (width < flag) {
|
||||
value.value.style.background = "#F53839";
|
||||
} else {
|
||||
value.value.style.background = "#60DDDE";
|
||||
@@ -50,7 +50,7 @@ function setValue() {
|
||||
}
|
||||
|
||||
let isWaring = computed(() => {
|
||||
return params.wp.value >= params.wp.point;
|
||||
return params.wp.value < params.wp.point;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user