Skip to content

Commit

Permalink
公告 Modal 添加更新时间标识
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanxven committed Jul 29, 2024
1 parent e3fcf98 commit 1d10f9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

- 自动选择 / 自动禁用不生效的问题。

- 自动更新脚本不支持中文路径的问题。

# v1.2.3 (2024-07-27)

## 新增
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
v-model:show="show"
:class="styles['ann-modal']"
>
<template #header><span class="card-header-title">公告</span></template>
<template #header
><span class="card-header-title"
>公告<span style="font-size: 12px" v-if="au.currentAnnouncement">
({{ dayjs(au.currentAnnouncement.updateAt).locale('zh-cn').fromNow() }} 更新)</span
></span
></template
>
<div>
<NScrollbar
style="max-height: 50vh"
Expand All @@ -33,6 +39,7 @@
import { autoUpdateRendererModule as aum } from '@shared/renderer/modules/auto-update'
import { useAutoUpdateStore } from '@shared/renderer/modules/auto-update/store'
import { markdownIt } from '@shared/renderer/utils/markdown'
import dayjs from 'dayjs'
import { NButton, NModal, NScrollbar } from 'naive-ui'
import { computed, useCssModule } from 'vue'
Expand Down

0 comments on commit 1d10f9f

Please sign in to comment.