mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
feat: add useComponent
hook
This commit is contained in:
parent
e0d6002aa8
commit
506bfc8087
@ -54,7 +54,7 @@ export function getPluginsList(command, VITE_LEGACY) {
|
||||
import { setupProdMockServer } from './mockProdServer';
|
||||
setupProdMockServer();
|
||||
`,
|
||||
logger: true
|
||||
logger: false
|
||||
}),
|
||||
// 是否为打包后的文件提供传统浏览器兼容性支持
|
||||
VITE_LEGACY
|
||||
|
4
src/utils/useComponent.ts
Normal file
4
src/utils/useComponent.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { h, resolveComponent } from "vue";
|
||||
|
||||
export const dynamicComponent = (component: string) =>
|
||||
h(resolveComponent(component));
|
Loading…
x
Reference in New Issue
Block a user