update notify style

This commit is contained in:
Timi
2026-08-28 11:39:12 +08:00
parent f54a129edb
commit bbca267242
10 changed files with 483 additions and 447 deletions
+10 -1
View File
@@ -9,7 +9,11 @@
<pass-time-label class="time" :timestamp="detail.sendAt" underline />
</header>
<section class="body">
<notify-view :detail="detail" empty-text="暂无通知内容" />
<notify-view
:detail="detail"
empty-text="暂无通知内容"
:resolve-attachment-url="resolveAttachmentUrl"
/>
</section>
</article>
<t-empty
@@ -26,6 +30,7 @@ import { NotifyAPI, type NotifyDetail } from "timi-web-api";
import { DialogPlugin } from "tdesign-mobile-vue";
import { useNavBarStore } from "@/store/navBarStore";
import { getErrorMessage } from "@/utils/error";
import { getAttachmentReadURL } from "@/utils/attachment";
import { corePermissionCodes } from "@/utils/permission";
import { Message } from "@/utils/message.ts";
@@ -148,6 +153,10 @@ function getSenderName(item: NotifyDetail): string {
return item.fromUser?.nick?.trim() || item.fromUser?.name?.trim() || "系统通知";
}
function resolveAttachmentUrl(attachmentId: string): string {
return getAttachmentReadURL(attachmentId);
}
// ---------- 生命周期 ----------
watch(() => route.params.id, async () => {