[update]两阶段编译代码

This commit is contained in:
zicorn 2025-01-20 14:14:38 +08:00
parent 54c6e6ade4
commit 5199639d8c

View File

@ -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}`; const url = `${auth_url}?client_id=${client_id}&redirect_uri=${redirect_uri}&response_type=${response_type}&scope=${scope}&state=${state}`;
if (openInNewTab) { if (openInNewTab) {
window.open(url); window.open(url);
} else } else {
{
window.location.href = url; window.location.href = url;
} }
} }
@ -210,6 +209,7 @@ export function removeTrailingSlash(url) {
} }
let channelModels = undefined; let channelModels = undefined;
export async function loadChannelModels() { export async function loadChannelModels() {
const res = await API.get('/api/models'); const res = await API.get('/api/models');
const {success, data} = res.data; const {success, data} = res.data;
@ -257,3 +257,4 @@ export function copy(text, name = '') {
} }
document.body.removeChild(textArea); document.body.removeChild(textArea);
} }
}