File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11export { useStomp } from "./websocket/useStomp" ;
2- export { useDictSync , DictMessage } from "./websocket/useDictSync" ;
2+ export { useDictSync } from "./websocket/useDictSync" ;
3+ export type { DictMessage } from "./websocket/useDictSync" ;
34export { useOnlineCount } from "./websocket/useOnlineCount" ;
45
56export { useLayout } from "./layout/useLayout" ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ function createDictSyncHook() {
8989 }
9090
9191 // 取消所有订阅
92- subscriptionIds . value . forEach ( ( id ) => {
92+ subscriptionIds . value . forEach ( ( id : string ) => {
9393 unsubscribe ( id ) ;
9494 } ) ;
9595 subscriptionIds . value = [ ] ;
@@ -182,7 +182,7 @@ function createDictSyncHook() {
182182 console . log ( `[DictSync] 字典缓存已清除: ${ dictCode } ` ) ;
183183
184184 // 调用所有注册的回调函数
185- messageCallbacks . value . forEach ( ( callback ) => {
185+ messageCallbacks . value . forEach ( ( callback : DictMessageCallback ) => {
186186 try {
187187 callback ( parsedData ) ;
188188 } catch ( callbackError ) {
You can’t perform that action at this time.
0 commit comments