Defer admin form runtime loading
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import type { SetupZqTable } from './types';
|
||||
|
||||
import { useVbenForm } from '@vben-core/form-ui';
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
|
||||
// 是否加载过
|
||||
let isInit = false;
|
||||
|
||||
// eslint-disable-next-line import/no-mutable-exports
|
||||
export let useTableForm: typeof useVbenForm;
|
||||
export let useTableForm: typeof useVbenForm = useVbenForm;
|
||||
|
||||
export function initZqTable() {
|
||||
if (isInit) {
|
||||
|
||||
Reference in New Issue
Block a user