This commit is contained in:
@jyuhsin
2025-12-18 10:40:53 +08:00
parent 276fbae2ed
commit 21c4c1c6de
4 changed files with 32 additions and 5 deletions
@@ -436,7 +436,7 @@ module.exports = {
let result = []
if (response && response.code === 0 && file.status === "success") {
fileList.forEach((f) => {
if(f.response.data.includes('webvpn')) {
if(f.response.data?.includes('webvpn')) {
const index = f.response.data.indexOf('/platform')
f.response.data = f.response.data.substring(index)
}
@@ -444,6 +444,7 @@ module.exports = {
})
} else {
this.$message.error(response.msg)
fileList = fileList.splice(file, 1)
}
if (result.length > 0) {
if (this.upload_result_category === "interval") {
@@ -475,7 +476,7 @@ module.exports = {
}
return
}
this.$emit("update:value", null)
this.$emit("update:value", fileList)
},
// 通过DOM获取上传的文件