mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-11-19 01:00:30 +00:00
11 lines
334 B
Vue
11 lines
334 B
Vue
// 获取所有动态页面(views目录下的所有vue文件和tsx文件)
|
|
const allFiles = import.meta.glob(
|
|
[
|
|
'../views/**/*.{vue,tsx}',// 获取所有vue和tsx文件
|
|
// 排除特定文件夹
|
|
'!../views/system/approvalrole/compoments/**',
|
|
]
|
|
);
|
|
// 合并所有动态页面
|
|
export const dynamicPages = { ...allFiles };
|