更新项目结构,添加 demo 页面及相关状态管理;修改路由配置,更新依赖项,重构部分代码

This commit is contained in:
2026-02-09 00:21:44 +08:00
parent e0291d70bf
commit aadf2acebe
15 changed files with 258 additions and 27 deletions

View File

@@ -1,2 +1,11 @@
// @ts-ignore
export const basename = BASE_NAME;
export const wrapBasename = (path: string) => {
const hasEnd = path.endsWith('/')
if (basename) {
return `${basename}${path}` + (hasEnd ? '' : '/');
} else {
return path;
}
}

View File

@@ -1,3 +1,3 @@
import { QueryClient } from '@kevisual/query';
export const query = new QueryClient();
export const query = new QueryClient({});