This commit is contained in:
2025-12-26 19:00:35 +08:00
commit ad2d73a61b
34 changed files with 8683 additions and 0 deletions

View File

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