feat: implement AI city forecasting and market scan hooks with backend API integration for the scan terminal dashboard

This commit is contained in:
2569718930@qq.com
2026-04-26 11:28:36 +08:00
parent 9b77a3a0e2
commit f39f59f47a
5 changed files with 11 additions and 810 deletions
+4
View File
@@ -21,6 +21,10 @@ export function resolveBackendApiUrl(path: string) {
return `${base}${suffix}`;
}
export async function fetchBackendApi(path: string, init?: RequestInit) {
return fetch(resolveBackendApiUrl(path), init);
}
export async function buildBrowserBackendHeaders(init?: HeadersInit) {
const headers = new Headers(init);
if (!headers.has("Accept")) {