refactor(frontend): reduce type errors
This commit is contained in:
parent
2cd32b2248
commit
9e20065496
2 changed files with 5 additions and 1 deletions
|
@ -84,6 +84,7 @@ const alwaysMarkNsfw = ref($i.alwaysMarkNsfw);
|
|||
const autoSensitive = ref($i.autoSensitive);
|
||||
|
||||
const meterStyle = computed(() => {
|
||||
if (!capacity.value || !usage.value) return {};
|
||||
return {
|
||||
width: `${usage.value / capacity.value * 100}%`,
|
||||
background: tinycolor({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue