feat: Oauth update
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
/** @format */
|
||||
|
||||
import MainContainer from "@/components/Home/main-container/MainContainer.tsx";
|
||||
import { observer } from "mobx-react";
|
||||
|
||||
export default () => {
|
||||
export default observer(() => {
|
||||
return (
|
||||
<div>
|
||||
<MainContainer />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
@@ -56,6 +56,7 @@ export default observer(() => {
|
||||
|
||||
async function oAuthLogin(type: string) {
|
||||
const res: any = await oauthLogin(type);
|
||||
console.log(res);
|
||||
window.location.href = res.data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user