You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/shared/redux/setup.ts

13 lines
308 B
TypeScript

import type { AppStore } from './store';
import type { AppSocket } from '../api/socket';
/**
* 初始化Redux 上下文
*/
export function setupRedux(socket: AppSocket, store: AppStore) {
socket.request('friend.getAllFriends').then((resp) => {
// TODO
console.log('好友列表', resp);
});
}