Эх сурвалжийг харах

feat: 表单签名、文件上传配置上传接口100%

luoyali 1 жил өмнө
parent
commit
4143731bf5

+ 3 - 3
src/views/flow/create/components/FormDesign.vue

@@ -4,11 +4,11 @@ import { erFormEditor } from 'everright-formeditor'
 import 'Everright-formEditor/dist/style.css'
 import useFlowStore from '@/store/modules/flow'
 import { storeToRefs } from 'pinia'
-import { ElMessage } from 'element-plus'
 const flowStore = useFlowStore()
 const { processForm } = storeToRefs(flowStore)
-
+const { VITE_APP_BASE_API } = import.meta.env
 const EReditorRef = ref()
+const uploadFileApi = ref(`${VITE_APP_BASE_API}/v1/oss/upload`)
 
 const handleListener = obj => {}
 
@@ -66,6 +66,6 @@ defineExpose({
 </script>
 <template>
 	<div class="form-design-wrap">
-		<er-form-editor ref="EReditorRef" :is-show-i18n="false" @listener="handleListener" />
+		<er-form-editor ref="EReditorRef" :is-show-i18n="false" :fileUploadURI="uploadFileApi" @listener="handleListener" />
 	</div>
 </template>