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