feat: registerComponent

This commit is contained in:
xingyu4j
2025-06-08 17:42:44 +08:00
parent fb9ce28276
commit 5fb652f2b3

View File

@@ -1,7 +1,7 @@
import { defineAsyncComponent } from 'vue';
const modules = import.meta.glob('../views/**/*.{vue,tsx}');
// TODO @xingyu这个要不要融合到哪个 router util 里?
// TODO @xingyu这个要不要融合到哪个 router util 里? utils 里面没有引入 vue 使用不了 defineAsyncComponent
/**
* 注册一个异步组件
* @param componentPath 例:/bpm/oa/leave/detail