Commit 78b01712 by yixinjj

fixed

1 parent 11c33c5f
......@@ -77,7 +77,7 @@ export default {
if (!record) return;
const recordFileList = record.recordUrlList;
recordFileList.forEach((fileInfo) => {
if (fileInfo.file === filePathOnClient || fileInfo.endsWith(fileName)) {
if (fileInfo.file === filePathOnClient || fileInfo.file.endsWith(fileName)) {
fileInfo.file = filePathOnServer;
delete fileInfo.status;
}
......@@ -122,7 +122,7 @@ export default {
acc = acc.concat(
cur.recordUrlList.map((file) => {
const fileName = file.file.split("/").pop();
if (file.file.startsWith("file://")) {
if (!file.file.startsWith("file://")) {
file.file = this.fileSaveFolderOnClient + fileName;
}
return { ...file, recordId: cur.id, fileName,filePath:file.file.replace(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!