更新代码

This commit is contained in:
hero920103 committed 2026-09-15 10:44:31 +08:00
1 parent 9875832019
commit 943c3708b0
125 files changed
+2009 -1728

No files matched your search

+1 -6
View File
@@ -120,6 +120,7 @@ import { User, SwitchButton, Sunny, Moon, Refresh, Bell, HomeFilled, Loading, Me
import { ElMessage } from 'element-plus';
import { getMySiteReminders, readAllSiteReminders } from "@/api/sitereminder";
import MessageDetailDialog from "./MessageDetailDialog.vue";
import { formatTime } from "@/utils/datetime";
const router = useRouter();
const route = useRoute();
@@ -181,12 +182,6 @@ const loadingMessages = ref(false);
const detailVisible = ref(false);
const currentReminder = ref<any>({});
const formatTime = (timeStr: any) => {
if (!timeStr) return "-";
const date = new Date(timeStr);
return date.toLocaleString();
};
const fetchUnreadCount = async () => {
if (!authStore.token) return;
try {
@@ -32,6 +32,7 @@
import { computed, ref, watch } from "vue";
import { User, Calendar } from "@element-plus/icons-vue";
import { readSiteReminder } from "@/api/sitereminder";
import { formatTime } from "@/utils/datetime";
const props = defineProps({
modelValue: Boolean,
@@ -62,12 +63,6 @@ const getSenderName = (item: any) => {
return item.sender_type;
};
const formatTime = (timeStr: any) => {
if (!timeStr) return "-";
const date = new Date(timeStr);
return date.toLocaleString();
};
watch(() => props.modelValue, async (val) => {
if (val && props.reminder && !props.viewOnly && props.reminder.is_read === 0) {
loading.value = true;