更新页面
This commit is contained in:
@ -186,8 +186,6 @@ const headers = ref({
|
||||
|
||||
onMounted(() => {
|
||||
if (props.modelValue) {
|
||||
console.log(props.modelValue,'==========props.modelValue');
|
||||
console.log(fileList.value,'====键');
|
||||
fileList.value = props.modelValue.map((el) => {
|
||||
return {
|
||||
url: `/mosty-api/mosty-base/minio/image/download/` + el
|
||||
@ -202,9 +200,9 @@ const handlerSuccess = (res, file) => {
|
||||
fileList.value.push(file);
|
||||
props.modelValue.push(res.data);
|
||||
emits("handleChange", props.modelValue);
|
||||
// emits("update:modelValue", props.modelValue);
|
||||
emits("update:modelValue", props.modelValue);
|
||||
};
|
||||
const handlePreview = (file) => {};
|
||||
|
||||
const handleExceed = (files, fileList) => {
|
||||
ElMessage.warning(`限制,只能上传${props.limit}个文件或图片`);
|
||||
};
|
||||
@ -245,7 +243,7 @@ const handleRemove = (file) => {
|
||||
fileList.value.splice(index, 1);
|
||||
props.modelValue.splice(index, 1);
|
||||
emits("handleChange", props.modelValue);
|
||||
// emits("update:modelValue", props.modelValue);
|
||||
emits("update:modelValue", props.modelValue);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user