add qq oauth2 support / start landing page

This commit is contained in:
landaiqing
2024-08-19 23:11:22 +08:00
parent 8998259791
commit 498807ca66
28 changed files with 1123 additions and 129 deletions

View File

@@ -3,9 +3,12 @@ import {service} from "@/utils/alova/service.ts";
/**
* Get Github OAuth URL
*/
export const getGithubUrl = () => {
export const getGithubUrl = (state: string) => {
return service.Get('/api/oauth/github/get_url',
{
params: {
state: state
},
meta: {
ignoreToken: true,
},