--修复动态组件导入路径错误
This commit is contained in:
@ -119,7 +119,8 @@
|
|||||||
import WebOfficeSDK from '/@/assets/libs/open-jssdk-v0.1.3.es.js';
|
import WebOfficeSDK from '/@/assets/libs/open-jssdk-v0.1.3.es.js';
|
||||||
import { getToken } from '/@/utils/auth';
|
import { getToken } from '/@/utils/auth';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { methodOf } from 'lodash-es';
|
import { methodOf } from 'lodash-es';
|
||||||
|
import { buildSnowFlakeId } from '/@/utils/uuid';
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
|
const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
|
||||||
|
|
||||||
@ -188,7 +189,7 @@ import { methodOf } from 'lodash-es';
|
|||||||
tableName.value = data.tableName;
|
tableName.value = data.tableName;
|
||||||
columnName.value = data.columnName;
|
columnName.value = data.columnName;
|
||||||
}else{
|
}else{
|
||||||
tableId.value = props.value || '';
|
tableId.value = props.value || buildSnowFlakeId();
|
||||||
tableName.value = props.tableName || '';
|
tableName.value = props.tableName || '';
|
||||||
columnName.value = props.columnName || '';
|
columnName.value = props.columnName || '';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { formProps } from './config';
|
import { formProps } from './config';
|
||||||
import ModalForm from './Form.vue';
|
import ModalForm from './Form.vue';
|
||||||
|
|
||||||
import { FromPageType } from '/@/enums/workflowEnum';
|
import { FromPageType } from '/@/enums/workflowEnum';
|
||||||
|
|
||||||
const emit = defineEmits(['success', 'register']);
|
const emit = defineEmits(['success', 'register']);
|
||||||
|
|||||||
@ -56,6 +56,7 @@
|
|||||||
import { isValidJSON } from '/@/utils/event/design';
|
import { isValidJSON } from '/@/utils/event/design';
|
||||||
|
|
||||||
import CustomerModal from './components/CustomerModal.vue';
|
import CustomerModal from './components/CustomerModal.vue';
|
||||||
|
import CustomerCeateForm from './components/createForm.vue';
|
||||||
import {formConfig, searchFormSchema, columns } from './components/config';
|
import {formConfig, searchFormSchema, columns } from './components/config';
|
||||||
import Icon from '/@/components/Icon/index';
|
import Icon from '/@/components/Icon/index';
|
||||||
import FlowRecord from '/@/views/workflow/task/components/flow/FlowRecord.vue';
|
import FlowRecord from '/@/views/workflow/task/components/flow/FlowRecord.vue';
|
||||||
|
|||||||
@ -185,7 +185,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
return defineAsyncComponent({
|
return defineAsyncComponent({
|
||||||
loader: () => import(`/@/views/${data.formInfos[0]?.functionalModule}/${data.formInfos[0]?.functionName}/components/createForm.vue`)
|
loader: () => import(`../../views/${data.formInfos[0]?.functionalModule}/${data.formInfos[0]?.functionName}/components/createForm.vue`)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
function showButton(btn) {
|
function showButton(btn) {
|
||||||
|
|||||||
@ -151,7 +151,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
return defineAsyncComponent({
|
return defineAsyncComponent({
|
||||||
loader: () => import(`/@/views/${data.formInfos[0]?.functionalModule}/${data.formInfos[0]?.functionName}/components/createForm.vue`)
|
loader: () => import(`../../views/${data.formInfos[0]?.functionalModule}/${data.formInfos[0]?.functionName}/components/createForm.vue`)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -161,7 +161,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
return defineAsyncComponent({
|
return defineAsyncComponent({
|
||||||
loader: () => import(`/@/views/${props.formInfos[0]?.functionalModule}/${props.formInfos[0]?.functionName}/components/createForm.vue`)
|
loader: () => import(`../../../../../views/${props.formInfos[0]?.functionalModule}/${props.formInfos[0]?.functionName}/components/createForm.vue`)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user