mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-17 10:08:14 +08:00
⚡️ 修正逻辑,优化竖图表现
This commit is contained in:
@@ -15,8 +15,9 @@ const props = defineProps<TwoConvertProps>();
|
||||
|
||||
const textColor = computed(() => {
|
||||
if (!props.data || !props.data.days) return "var(--tgc-blue-2)";
|
||||
const days = props.data.days;
|
||||
const day = new Date().getDay();
|
||||
if (props.data.days.includes(day.toString())) return "var(--tgc-pink-1)";
|
||||
if (day === 0 || days.includes(day.toString())) return "var(--tgc-pink-1)";
|
||||
return "var(--tgc-blue-2)";
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user