feat: 修改 subscription 请求参数结构。

This commit is contained in:
Ivan Li 2021-07-22 21:13:03 +08:00
parent 4e493f79d1
commit 0c1eda8299

View File

@ -140,11 +140,9 @@ export const AppApolloClientProvider: FC = ({ children }) => {
options: {
reconnect: true,
connectionParams: {
headers: {
authorization: `Bearer ${accessTokenRef.current} `,
},
},
},
});
const httpLink = new HttpLink({
uri: "/api/graphql",