- 将 FileUpload.js 中的 min_size 默认值从 0 改为 1 - 在 FieldUploadQuestionAction.vue 中,将 min_size 的最小值设置为 1 -确保用户在上传文件时至少选择一个文件,避免出现空文件上传的情况
30 lines
485 B
JavaScript
30 lines
485 B
JavaScript
export default {
|
|
id: '',
|
|
question_type: 18,
|
|
question_index: 41,
|
|
stem: '<p>请上传文件</p>',
|
|
title: 'Q14',
|
|
options: [],
|
|
last_option_index: 0,
|
|
config: {
|
|
is_required: 1,
|
|
quick_type: 0,
|
|
is_show: [],
|
|
select_random: 0,
|
|
min_number: 1,
|
|
max_number: 1,
|
|
min_size: 1,
|
|
max_size: 1,
|
|
is_file: 0,
|
|
file_type: '0'
|
|
},
|
|
associate: [],
|
|
question_code: '',
|
|
logic_config: {
|
|
order: 0,
|
|
type: 0,
|
|
expect: '',
|
|
stay_time: ''
|
|
}
|
|
};
|