mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 22:20:27 +08:00
11 lines
188 B
TypeScript
11 lines
188 B
TypeScript
import fs from "fs";
|
|
|
|
export function getModules() {
|
|
try {
|
|
const dirs = fs.readdirSync("./src/modules");
|
|
return dirs.filter((e) => !e.includes("."));
|
|
} catch (e) {
|
|
return [];
|
|
}
|
|
}
|