feat: Oauth update

This commit is contained in:
landaiqing
2024-05-27 23:42:30 +08:00
parent 90a1c1f3ce
commit ce246ae2fe
8 changed files with 64 additions and 55 deletions

View File

@@ -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>
);
};
});

View File

@@ -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;
}