feat: 更新 API 地址,优化样式和组件,添加新主题变量

This commit is contained in:
2025-12-13 18:50:24 +07:00
parent b86f257e38
commit 3866c85815
12 changed files with 139 additions and 30 deletions

View File

@@ -1,6 +1,10 @@
import type { App } from "@riwa/api-types";
import { treaty } from "@elysiajs/eden";
const api = treaty<App>(`${window.location.origin}/api`);
const client = treaty<App>(`${window.location.origin}/api`, {
fetch: {
credentials: "include",
},
});
export { api };
export { client };