补充内容

This commit is contained in:
abearxiong committed 2025-11-25 09:39:41 +08:00
1 parent 0810a1be5d
commit 90c2da923a
5 files changed
+1272 -213

No files matched your search

+9 -1
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
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()
});