|
@@ -84,17 +84,19 @@ export default {
|
|
type
|
|
type
|
|
);
|
|
);
|
|
|
|
|
|
- if (!item) {
|
|
|
|
|
|
+ if (type === "xml" && !item) {
|
|
item = this.attachmentList.find(
|
|
item = this.attachmentList.find(
|
|
(i) =>
|
|
(i) =>
|
|
i.fileName.slice(
|
|
i.fileName.slice(
|
|
i.fileName.lastIndexOf(".") + 1
|
|
i.fileName.lastIndexOf(".") + 1
|
|
) === "xosc"
|
|
) === "xosc"
|
|
);
|
|
);
|
|
- if (!item) {
|
|
|
|
- item = {};
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (!item) {
|
|
|
|
+ item = {};
|
|
|
|
+ }
|
|
|
|
+
|
|
data[type + "Address"] = item.fileName || "";
|
|
data[type + "Address"] = item.fileName || "";
|
|
}
|
|
}
|
|
},
|
|
},
|