This commit is contained in:
2025-07-19 14:06:46 +08:00
parent e447346af5
commit ce8eee2380
4 changed files with 91 additions and 51 deletions

View File

@ -82,6 +82,7 @@
</template>
<script setup>
import { COMPONENT_WIDTH } from "@/constant";
import { ref, defineProps, defineEmits, computed, watch, onMounted } from "vue";
import { ElMessage } from "element-plus";
@ -196,12 +197,13 @@ watch(
const handlerSuccess = (res, file) => {
file.url = `/mosty-api/mosty-base/minio/image/download/` + res.data;
fileList.value.push(file);
let arr = props.modelValue ? props.modelValue : [];
arr.push(res.data);
emits("update:modelValue", arr);
emits("handleChange", props.modelValue);
console.log(file,'===========00');
// file.url = `/mosty-api/mosty-base/minio/image/download/` + res.data;
// fileList.value.push(file);
// let arr = props.modelValue ? props.modelValue : [];
// arr.push(res.data);
// emits("update:modelValue", arr);
// emits("handleChange", props.modelValue);
};
const handleExceed = (files, fileList) => {