|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div style="width: 100%;">
|
|
|
<CtForm ref="formPageRef" :items="items"></CtForm>
|
|
|
- <div class="color-666 mb-3" style="font-size: 13px;">* 仅支持.doc, .docx, .pdf文件</div>
|
|
|
+ <div class="color-666 mb-3" style="font-size: 13px;">* 仅支持.doc, .docx, .pdf文件且大小不能超过20MB</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -21,7 +21,7 @@ const typeList = ['pdf', 'doc', 'docx']
|
|
|
const handleUpload = async (e) => {
|
|
|
const file = e
|
|
|
const size = file.size
|
|
|
- if (size / (1024*1024) > 10) {
|
|
|
+ if (size / (1024*1024) > 20) {
|
|
|
Snackbar.warning(t('common.fileSizeExceed'))
|
|
|
return
|
|
|
}
|