feat sse消息弹窗修改
This commit is contained in:
@@ -39,9 +39,10 @@ export const initSSE = (url: any) => {
|
|||||||
read: false,
|
read: false,
|
||||||
time: new Date().toLocaleString()
|
time: new Date().toLocaleString()
|
||||||
});
|
});
|
||||||
|
const displayMessage = data.value.split('|')[0].trim();
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '消息',
|
title: '消息',
|
||||||
message: data.value,
|
message: displayMessage,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 3000
|
duration: 3000
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user