Esse commit está contido em:
DESKTOP-FUDKNA8\znjsz 2024-03-20 09:18:16 +08:00
commit 55947ceb16
2 arquivos alterados com 7 adições e 5 exclusões

Ver arquivo

@ -33,10 +33,12 @@ watch(
);
const rate = computed(() => {
const _rate = ((props.rawData.nowYield / props.rawData.targetYield) * 100)
.toFixed(2)
.toString();
return [parseInt(_rate), _rate.split(".")[1]];
if (!props.rawData.nowYield || props.rawData.nowYield == 0) return [0, 0];
// const _rate = ((props.rawData.nowYield / props.rawData.targetYield) * 100)
// .toFixed(2)
// .toString();
// return [parseInt(_rate), _rate.split(".")[1]];
return [parseInt(props.rawData.nowYield), props.rawData.nowYield.split(".")[1]];
});
const chart = ref(null);

Ver arquivo

@ -36,7 +36,7 @@ const props = defineProps({
}
.data-list {
height: 100%;
/* height: 100%; */
width: 480px;
position: absolute;