|
@@ -131,11 +131,12 @@ const handleChange = (info, type) => {
|
|
|
if (status === 'done') {
|
|
|
message.success(`${info.file.name} 文件上传成功.`);
|
|
|
const id = 'title-' + new Date().getTime();
|
|
|
- const url = 'https://ai.zrzyt.zj.gov.cn/aisKnowledge' + info.file.response.data;
|
|
|
+ const url = 'http://10.1.1.11:59001/aisKnowledge' + info.file.response.data;
|
|
|
var item = {
|
|
|
id: id,
|
|
|
f_title: name,
|
|
|
f_type: 'temp',
|
|
|
+ file: info.file.originFileObj,
|
|
|
size: info.file.size,
|
|
|
fileName: fileName,
|
|
|
url: url
|
|
@@ -167,8 +168,7 @@ const deleteFileHandle = (type) => {
|
|
|
if (type === 1) {
|
|
|
file = fileList1.value[0]
|
|
|
fileList1.value = []
|
|
|
- }
|
|
|
- if (type === 2) {
|
|
|
+ }else if (type === 2) {
|
|
|
file = fileList2.value[0]
|
|
|
fileList2.value = []
|
|
|
}
|
|
@@ -178,6 +178,8 @@ const deleteFileHandle = (type) => {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ console.log("fileList.value------------------------")
|
|
|
+ console.log(fileList.value)
|
|
|
if (fileList.value.length > 0) {
|
|
|
current.value = fileList.value[0]
|
|
|
} else if (fileList.value.length === 0) {
|