diff --git a/components/ReadonlyMdEditor.vue b/components/ReadonlyMdEditor.vue index a1b6e6b..ff1c547 100644 --- a/components/ReadonlyMdEditor.vue +++ b/components/ReadonlyMdEditor.vue @@ -13,13 +13,24 @@ const eraseHeaderMarkdown = computed(() => props.markdown.replace(/^---[\s\S]*?- const { colorMode } = storeToRefs(useColorModeStore()); +const mounted = ref(false); + +onMounted(() => { + mounted.value = true; +}); + diff --git a/components/TechStackCard.vue b/components/TechStackCard.vue index 8b51a3e..cfdb918 100644 --- a/components/TechStackCard.vue +++ b/components/TechStackCard.vue @@ -64,6 +64,7 @@ const renderChart = () => { chart: { type: 'bar', backgroundColor: 'transparent', + reflow: false, }, credits: { enabled: false, @@ -127,7 +128,8 @@ const renderChart = () => { dataLabels: { enabled: true, style: { - color: '#fff', + color: colorMode.value === 'light' ? '#4e4d55' : '#fff', + textOutline: 'none', }, formatter: function () { return toPercent(this.y); // 自定义条形图值的显示格式 @@ -178,11 +180,15 @@ const scrollbarOptions = { }, }; +const mounted = ref(false); +onMounted(() => { + mounted.value = true; +}); diff --git a/layouts/UserLayout.vue b/layouts/UserLayout.vue index 1e1e264..0de2a6b 100644 --- a/layouts/UserLayout.vue +++ b/layouts/UserLayout.vue @@ -61,6 +61,11 @@ useRouter().beforeEach(() => { useRouter().afterEach(() => { isLoading.value = false; }); + +const mounted = ref(false); +onMounted(() => { + mounted.value = true; +});