fix: 修改key

This commit is contained in:
mtruning
2022-01-16 22:17:34 +08:00
parent c63637360f
commit e1bb655bf1
36 changed files with 130 additions and 86 deletions
+14
View File
@@ -0,0 +1,14 @@
import { defineAsyncComponent, AsyncComponentLoader } from 'vue'
import { AsyncLoading } from '@/components/LoadingComponent'
/**
* * 异步加载组件
* @param loader
* @returns
*/
export const loadAsyncComponent = (loader: AsyncComponentLoader<any>) =>
defineAsyncComponent({
loader,
loadingComponent: AsyncLoading,
delay: 20,
})