Browse Source

fix: pcUrl非空处理

xlsea 11 months ago
parent
commit
ca1f668bdf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/approve/components/approvedContent.vue

+ 1 - 1
src/views/approve/components/approvedContent.vue

@@ -456,7 +456,7 @@ const getTaskDetail = () => {
 							}
 							}
 						}
 						}
 						// dyVueComponent.value = markRaw(defineAsyncComponent(() => import('@/views/flow/test/test1.vue')))
 						// dyVueComponent.value = markRaw(defineAsyncComponent(() => import('@/views/flow/test/test1.vue')))
-						if (data.formTemplate.pcUrl) {
+						if (data.formTemplate.pcUrl && modules[data.formTemplate.pcUrl]) {
 							dyVueComponent.value = defineAsyncComponent(async () => await /* @vite-ignore */ modules[data.formTemplate.pcUrl]())
 							dyVueComponent.value = defineAsyncComponent(async () => await /* @vite-ignore */ modules[data.formTemplate.pcUrl]())
 						}
 						}
 						return
 						return