fix: complete HoloLake Agent and Forgejo desktop runtime

This commit is contained in:
冰朔 2026-08-08 10:39:18 +08:00
commit 46bdd0ca73
15 changed files with 1217 additions and 638 deletions

View file

@ -3,7 +3,9 @@
* Agent UI
*/
const BASE = '/api';
const BASE = typeof window !== 'undefined' && window.location.protocol === 'file:'
? 'http://127.0.0.1:3890/api'
: '/api';
async function request<T>(path: string, options?: RequestInit): Promise<T> {
const res = await fetch(`${BASE}${path}`, {