refactor: 组合式函数目录结构调整

This commit is contained in:
Ray.Hao
2025-09-12 18:00:54 +08:00
parent 070a43d540
commit 6730608920
17 changed files with 42 additions and 40 deletions

View File

@@ -86,14 +86,14 @@ const noticeList = ref<NoticePageVO[]>([]);
const noticeDialogVisible = ref(false);
const noticeDetail = ref<NoticeDetailVO | null>(null);
import { useStomp } from "@/composables/useStomp";
import { useStomp } from "@/composables/websocket/useStomp";
const { subscribe, unsubscribe, isConnected } = useStomp();
watch(
() => isConnected.value,
(connected) => {
if (connected) {
subscribe("/user/queue/message", (message) => {
subscribe("/user/queue/message", (message: any) => {
console.log("收到通知消息:", message);
const data = JSON.parse(message.body);
const id = data.id;