修改测试问题
This commit is contained in:
@@ -290,7 +290,7 @@
|
||||
getDictList();
|
||||
visible.value = true;
|
||||
formState.value.id = record.id;
|
||||
fetch(uploadPic.select, { bizId: record.id, bizTpye: 1 }).then((res) => {
|
||||
fetch(uploadPic.select, { bizId: record.id, bizType: 1 }).then((res) => {
|
||||
fileList.value = res.data.map((item) => ({
|
||||
uid: item.id.toString(), // 使用文件的id作为唯一标识
|
||||
name: item.fileName, // 文件名
|
||||
@@ -424,9 +424,6 @@
|
||||
});
|
||||
fileList.value = newFileList;
|
||||
};
|
||||
const uploadQuery = ref({
|
||||
bizTpye: 1,
|
||||
});
|
||||
const onSubmit = () => {
|
||||
formRef.value
|
||||
.validate()
|
||||
@@ -445,7 +442,7 @@
|
||||
fileList.value.forEach((file) => {
|
||||
formData.value.append('files', file.originFileObj);
|
||||
});
|
||||
formData.value.append('bizTpye', 1);
|
||||
formData.value.append('bizType', 1);
|
||||
formData.value.append('bizId', res.data.id);
|
||||
fetch(uploadPic.uploadfiles, formData.value)
|
||||
.then((res) => {
|
||||
|
Reference in New Issue
Block a user