mirror of https://github.com/msgbyte/tailchat
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.
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
4 years ago
|
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);
|
||
|
});
|
||
|
}
|