Skip to content

Commit

Permalink
fix: fixed html file size and uploaded image url
Browse files Browse the repository at this point in the history
  • Loading branch information
Liberty-liu committed Apr 9, 2023
1 parent f4d0ce8 commit 1869426
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "everright-formeditor",
"version": "1.0.1",
"version": "1.0.2",
"files": [
"dist",
"packages/formEditor/componentsConfig.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/formEditor/components/FormTypes/Uploadfile/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const handlePictureCardPreview = (uploadFile) => {
const beforeAvatarUpload = (rawFile) => {
if (rawFile.size > props.params.maxSize) {
ElMessage({
message: t('er.validateMsg.fileSize', { size: props.data.size }),
message: t('er.validateMsg.fileSize', { size: props.data.options.size }),
type: 'warning'
})
return false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const handleSuccess = (response, uploadFile) => {
<li v-if="state.value0" :class="ns.e('uploadFile')">
<el-upload
accept=".png,.jpg"
action="http://192.168.31.181:8001/Everright-api/lowCode/uploads"
:action="ER.props.fileUploadURI"
list-type="picture-card"
ref="element"
:show-file-list="false"
Expand Down

0 comments on commit 1869426

Please sign in to comment.