名称Branding变更

This commit is contained in:
biss committed 2026-09-29 10:42:28 +08:00
1 parent c74c1e3914
commit 8b5103d542
41 files changed
+282 -93

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
import { Capacitor, registerPlugin } from '@capacitor/core'
import type { Router } from 'vue-router'
import http from '../api/http'
import { branding } from '../config/branding'
interface WidgetItem {
title: string
@@ -144,7 +145,7 @@ function attendanceItems(activities: any[]): WidgetItem[] {
function notificationItems(notifications: any[]): WidgetItem[] {
return notifications.filter((item: any) => !item.isRead).slice(0, 3).map((item: any) => ({
title: String(item.title ?? '教务通知'),
subtitle: String(item.senderName ?? '教务系统'),
subtitle: String(item.senderName ?? branding.shortName),
time: item.createdAt ? new Intl.DateTimeFormat('zh-CN', {
month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit', hour12: false,
}).format(new Date(item.createdAt)) : '未读',