style(sj_map_reduce): 优化版本号样式

This commit is contained in:
xlsea 2024-06-21 10:42:40 +08:00
parent ff4aca803f
commit edbad0c914
3 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ const theme = ref({
fontSize: '18px' fontSize: '18px'
}, },
'.cm-scroller': { '.cm-scroller': {
height: '520px', minHeight: '180px',
overflowY: 'auto', overflowY: 'auto',
overflowX: 'hidden' overflowX: 'hidden'
} }

View File

@ -7,13 +7,13 @@ defineOptions({
}); });
const { VITE_APP_VERSION } = import.meta.env; const { VITE_APP_VERSION } = import.meta.env;
const version = ref<string>(`v${localStg.get('version') || VITE_APP_VERSION}`); const version = ref<string>(`${localStg.get('version') || VITE_APP_VERSION}`);
</script> </script>
<template> <template>
<DarkModeContainer class="h-full flex-center"> <DarkModeContainer class="h-full flex-center">
<a href="https://gitee.com/aizuda/easy-retry/blob/master/LICENSE" target="_blank" rel="noopener noreferrer"> <a href="https://gitee.com/aizuda/easy-retry/blob/master/LICENSE" target="_blank" rel="noopener noreferrer">
Copyright © 2024 Snail Job {{ version }} Copyright © 2024 Snail Job v{{ version }}
</a> </a>
</DarkModeContainer> </DarkModeContainer>
</template> </template>

View File

@ -19,7 +19,7 @@ interface Props {
const props = defineProps<Props>(); const props = defineProps<Props>();
const { VITE_APP_VERSION } = import.meta.env; const { VITE_APP_VERSION } = import.meta.env;
const version = ref<string>(`v${localStg.get('version') || VITE_APP_VERSION}`); const version = ref<string>(`${localStg.get('version') || VITE_APP_VERSION}`);
const getVersion = async () => { const getVersion = async () => {
const { data, error } = await fetchVersion(); const { data, error } = await fetchVersion();
@ -73,7 +73,7 @@ const href = (url: string) => {
<SystemLogo class="text-64px text-primary lt-sm:text-48px" /> <SystemLogo class="text-64px text-primary lt-sm:text-48px" />
<h3 class="flex text-28px text-primary font-500 lt-sm:text-22px"> <h3 class="flex text-28px text-primary font-500 lt-sm:text-22px">
{{ $t('system.title') }} {{ $t('system.title') }}
<span class="mt-3px pl-12px text-16px color-#00000072 font-600">{{ version }}</span> <span class="mt-3px pl-12px text-16px color-#00000072 font-600">v{{ version }}</span>
</h3> </h3>
<div class="i-flex-col"> <div class="i-flex-col">
<ThemeSchemaSwitch <ThemeSchemaSwitch