补充内容

This commit is contained in:
2025-11-25 09:39:41 +08:00
parent 0810a1be5d
commit 90c2da923a
5 changed files with 1272 additions and 213 deletions

View File

@@ -1,4 +1,12 @@
// @ts-ignore
export const basename = BASE_NAME;
console.log(basename);
console.log(basename);
export const wrapBasename = (path: string) => {
if (basename) {
return `${basename}${path}/`;
} else {
return path;
}
}

15
src/modules/query.ts Normal file
View File

@@ -0,0 +1,15 @@
import { Query } from '@kevisual/query'
const getUrl = () => {
const host = window.location.host
const isKevisual = host.includes('kevisual');
if (isKevisual) {
return '/api/router'
}
return '/client/router'
}
export const query = new Query({
url: getUrl()
});