Commit 0873b5bb by 张立顺

Merge branch 'dev_v4.32.0_1130' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into dev_v4.32.0_1130
2 parents 932604cd 37a80f2e
......@@ -386,7 +386,10 @@
class="el-icon-zoom-in" />
</span>
</span>
<input type="file"
<input
:id="item.name + 'file'"
ref="file"
type="file"
class="activity-Input img-w-h"
accept="image/png, image/jpeg, image/gif, image/jpg"
@change="e => handleImgChange(e, item, subIndex)"
......@@ -750,6 +753,10 @@ export default {
var reader = new FileReader()
var fileInfo = e.srcElement.files[0]
if (!fileInfo) return
if (fileInfo?.size / 1024 / 1024 > 10) {
document.getElementById(`${targetItem.name}file`).value = ""
return this.$message('请上传10M以内图片')
}
reader.readAsDataURL(fileInfo)
reader.onload = e => {
const imgFile = e.target.result
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!