Skip to content

Commit 1ec2d3a

Browse files
committed
style(version): 优化 fontColor 计算格式
- 调整 fontColor 计算属性为多行格式 - 提高代码可读性与一致性
1 parent 4f969a3 commit 1ec2d3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

course/.vitepress/theme/version.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default defineComponent({
1010

1111
const currentVersion: Ref<string> = ref(version);
1212

13-
const fontColor: ComputedRef<string> = computed(() => (isDark.value ? "#fff" : "#000"));
13+
const fontColor: ComputedRef<string> = computed(() =>
14+
isDark.value ? "#fff" : "#000",
15+
);
1416

1517
const backgroundColor: ComputedRef<string> = computed(() =>
1618
isDark.value ? "#14120F" : "#ebedf0",

0 commit comments

Comments
 (0)