mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-11 10:53:42 +08:00
[update]两阶段编译代码
This commit is contained in:
@@ -107,8 +107,7 @@ export async function onOidcClicked(auth_url, client_id, openInNewTab = false) {
|
||||
const url = `${auth_url}?client_id=${client_id}&redirect_uri=${redirect_uri}&response_type=${response_type}&scope=${scope}&state=${state}`;
|
||||
if (openInNewTab) {
|
||||
window.open(url);
|
||||
} else
|
||||
{
|
||||
} else {
|
||||
window.location.href = url;
|
||||
}
|
||||
}
|
||||
@@ -210,6 +209,7 @@ export function removeTrailingSlash(url) {
|
||||
}
|
||||
|
||||
let channelModels = undefined;
|
||||
|
||||
export async function loadChannelModels() {
|
||||
const res = await API.get('/api/models');
|
||||
const {success, data} = res.data;
|
||||
@@ -257,3 +257,4 @@ export function copy(text, name = '') {
|
||||
}
|
||||
document.body.removeChild(textArea);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user