mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-25 22:29:42 +08:00
🩹 修复 ESLint 代码规范错误
This commit is contained in:
@@ -45,13 +45,12 @@ const progressColor = computed<string>(() => {
|
||||
return "#61afef";
|
||||
});
|
||||
const progressWidth = computed<string>(() => {
|
||||
let final = 10;
|
||||
if (props.data.rank === "5") {
|
||||
if (props.data.gachaType === "2000") final = 80;
|
||||
else final = 90;
|
||||
} else if (props.data.rank === "4") final = 10;
|
||||
else return "0%";
|
||||
return ((props.count / final) * 100).toFixed(2) + "%";
|
||||
if (props.data.gachaType === "2000") return ((props.count / 80) * 100).toFixed(2) + "%";
|
||||
return ((props.count / 90) * 100).toFixed(2) + "%";
|
||||
}
|
||||
if (props.data.rank === "4") return ((props.count / 10) * 100).toFixed(2) + "%";
|
||||
return "0%";
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -48,13 +48,12 @@ const progressColor = computed<string>(() => {
|
||||
return "#61afef";
|
||||
});
|
||||
const progressWidth = computed<string>(() => {
|
||||
let final = 10;
|
||||
if (props.data.rank === "5") {
|
||||
if (props.data.gachaType === "302") final = 80;
|
||||
else final = 90;
|
||||
} else if (props.data.rank === "4") final = 10;
|
||||
else return "0%";
|
||||
return ((props.count / final) * 100).toFixed(2) + "%";
|
||||
if (props.data.gachaType === "302") return ((props.count / 80) * 100).toFixed(2) + "%";
|
||||
return ((props.count / 90) * 100).toFixed(2) + "%";
|
||||
}
|
||||
if (props.data.rank === "4") return ((props.count / 10) * 100).toFixed(2) + "%";
|
||||
return "0%";
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user