首页+登录页
This commit is contained in:
7
src/config/index.ts
Normal file
7
src/config/index.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export function useConfig() {
|
||||
const files = import.meta.glob("./*.ts", { eager: true }) as Record<string, any>;
|
||||
Object.keys(files).forEach(key => {
|
||||
const name = key.replace(/(\.\/|\.ts)/g, "");
|
||||
(window as Record<string, any>)["$" + name] = files[key].default as any;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user