This commit is contained in:
2025-02-25 10:01:12 +08:00
parent b3c2587903
commit 6a4ff85683
9 changed files with 64 additions and 45 deletions

View File

@@ -1,11 +1,6 @@
import { useConfig } from '@kevisual/use-config';
const { resources, api } = useConfig<{
resources: string;
api: { host: string; path: string };
ƒ;
}>();
import { config } from '../config.ts';
const api = config?.api || { host: 'kevisual.xiongxiao.me', path: '/api/router' };
const apiPath = api.path || '/api/router';
export const fetchTest = async (id: string) => {
const fetchUrl = 'http://' + api.host + apiPath;