8/25 dev 权限,sse,账单

This commit is contained in:
Zy
2026-08-27 17:32:23 +08:00
parent b83735e993
commit 2ea75ee5ef
55 changed files with 870 additions and 293 deletions

View File

@@ -26,15 +26,16 @@ export const initSSE = (url: any) => {
watch(data, () => {
if (!data.value) return;
const notice = JSON.parse(data.value);
useNoticeStore().addNotice({
message: data.value,
message: notice.message,
read: false,
time: new Date().toLocaleString()
});
ElNotification({
title: '消息',
message: data.value,
type: 'success',
title: notice.title,
message: notice.message,
type: notice.type,
duration: 3000
});
data.value = null;