|
@@ -226,6 +226,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+import path from 'path'
|
|
|
import useTaskProcessStore from '@/store/modules/taskProcess'
|
|
|
import { computed, ref, nextTick, watch, markRaw, defineAsyncComponent, provide } from 'vue'
|
|
|
import FlowStatusStamp from '@/components/Flow/FlowStatusStamp.vue'
|
|
@@ -246,6 +247,7 @@ import { storeToRefs } from 'pinia'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { erFormPreview } from '@ER/formEditor'
|
|
|
|
|
|
+const modules = import.meta.glob('@/views/**/*.vue')
|
|
|
const { VITE_APP_BASE_API } = import.meta.env
|
|
|
const uploadFileApi = ref(`${VITE_APP_BASE_API}/v1/oss/upload`)
|
|
|
import { package_modelContentConfig } from './config.ts'
|
|
@@ -443,7 +445,7 @@ const getTaskDetail = () => {
|
|
|
desc: '啦啦啦'
|
|
|
}
|
|
|
}
|
|
|
- dyVueComponent.value = markRaw(defineAsyncComponent(() => import('@/views/flow/test/test1.vue')))
|
|
|
+ dyVueComponent.value = defineAsyncComponent(async () => await /* @vite-ignore */ modules[data.formTemplate.pcUrl]())
|
|
|
return
|
|
|
} else {
|
|
|
formContent = `{"formStructure":${data.formTemplate.content}}` || '{}'
|