修复一个类型错误

This commit is contained in:
AncTe committed 2023-04-27 21:33:29 +08:00
1 parent 2c25c1367b
commit 266b69a970
1 file changed
+8 -2
+8 -2
View File
@@ -63,10 +63,12 @@
>
<span
><span style="font-family: 'Fira Code'">{{
nowDamage[0] < 0 && !has(enemy.damage) ? '=>' : ''
(nowDamage[0] as number) < 0 && !has(enemy.damage)
? '=>'
: ''
}}</span
>{{
nowDamage[0] < 0 && !has(enemy.damage)
(nowDamage[0] as number) < 0 && !has(enemy.damage)
? format(-nowDamage[0])
: format(nowDamage[0])
}}</span
@@ -297,5 +299,9 @@ onMounted(() => {
top: 25vh;
width: 90vw;
}
.slider-div span {
font-size: 1.5vh;
}
}
</style>