chore: styles

This commit is contained in:
Dustella 2025-02-16 23:26:11 +08:00
parent 5db8c5a79b
commit 72df2a9c00
Signed by: Dustella
GPG Key ID: 35AA0AA3DC402D5C
5 changed files with 11 additions and 9 deletions

View File

@ -3,7 +3,7 @@
// you can use this to manipulate the document head in any components, // you can use this to manipulate the document head in any components,
// they will be rendered correctly in the html results with vite-ssg // they will be rendered correctly in the html results with vite-ssg
useHead({ useHead({
title: '季节内台风预报系统', title: '季节内逐日台风概率预报',
meta: [ meta: [
{ {
name: 'description', name: 'description',

View File

@ -126,7 +126,7 @@ const isTargetDateDisabled = computed(() => {
</div> </div>
<div class="grid grid-cols-2 gap-3"> <div class="grid grid-cols-2 gap-3">
<div> <div>
<Label for="temperature">发布日期</Label> <Label for="temperature">初始日期</Label>
<Popover> <Popover>
<PopoverTrigger as-child> <PopoverTrigger as-child>
<Button <Button
@ -151,7 +151,7 @@ const isTargetDateDisabled = computed(() => {
</Popover> </Popover>
</div> </div>
<div> <div>
<Label for="top-p">目标预报日期</Label> <Label for="top-p">预报日期</Label>
<Popover> <Popover>
<PopoverTrigger as-child> <PopoverTrigger as-child>
<Button <Button

View File

@ -26,11 +26,12 @@ function _useOptions() {
autoPlayer.pause() autoPlayer.pause()
} }
if (options.castDayNo >= 29) { if (options.castDayNo >= 29) {
autoPlayer.pause()
setTargetDate(castBeginDate.value!.add({ days: 1 })) setTargetDate(castBeginDate.value!.add({ days: 1 }))
} }
setTargetDate(castTargetDate.value!.add({ days: 1 })) else {
castTargetDate.value = castTargetDate.value?.add({ days: 1 }) setTargetDate(castTargetDate.value!.add({ days: 1 }))
castTargetDate.value = castTargetDate.value?.add({ days: 1 })
}
}, interval, { }, interval, {
immediate: false, immediate: false,
}) })

View File

@ -23,7 +23,7 @@ function flipDark() {
> >
<span class="i-mingcute-typhoon-fill size-6 px-5" @click="flipDark" /> <span class="i-mingcute-typhoon-fill size-6 px-5" @click="flipDark" />
<h1 class="text-xl font-semibold"> <h1 class="text-xl font-semibold">
季节内台风预报系统 季节内逐日台风概率预报
</h1> </h1>
<div class="size-5"> <div class="size-5">
<!-- <Switch :checked="isDark" @update:checked="flipDark"> <!-- <Switch :checked="isDark" @update:checked="flipDark">
@ -50,8 +50,8 @@ function flipDark() {
地图 地图
</Badge> </Badge>
<Card v-if="options.castDayNo !== -1" class="absolute right-3 top-3 z-400 p-3"> <Card v-if="options.castDayNo !== -1" class="absolute right-3 top-3 z-400 p-3">
发布日期 <br>{{ castBeginDate }}<br> 初始日期 <br>{{ castBeginDate }}<br>
预报日期<br> {{ castTargetDate }} 预报日期 <br> {{ castTargetDate }}
</Card> </Card>
<div class="flex-1" /> <div class="flex-1" />
<RouterView /> <RouterView />

View File

@ -18,6 +18,7 @@ import generateSitemap from 'vite-ssg-sitemap'
import 'vitest/config' import 'vitest/config'
export default defineConfig({ export default defineConfig({
base: '/typhoon',
resolve: { resolve: {
alias: { alias: {
'@/': `${path.resolve(__dirname, 'src')}/`, '@/': `${path.resolve(__dirname, 'src')}/`,