dykj-uniapp-store/api/migration/index.js

10 lines
229 B
JavaScript
Raw Permalink Normal View History

2024-05-24 09:16:17 +08:00
const files = import.meta.glob('./*.js', { eager: true });
let api = {};
Object.keys(files).forEach((key) => {
api = {
...api,
[key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default,
};
});
export default api;