feat: specify login organization

This commit is contained in:
Yaodong Yu
2023-05-27 19:02:54 +08:00
parent d04dd33d8b
commit 8ede4993af
23 changed files with 1210 additions and 573 deletions

View File

@ -79,3 +79,13 @@ export function getDefaultApplication(owner, name) {
},
}).then(res => res.json());
}
export function getOrganizationNames(owner) {
return fetch(`${Setting.ServerUrl}/api/get-organization-names?owner=${owner}`, {
method: "GET",
credentials: "include",
headers: {
"Accept-Language": Setting.getAcceptLanguage(),
},
}).then(res => res.json());
}