mali-applet-ui 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -137,12 +137,18 @@ export default {
|
|
|
137
137
|
if (this.simpleValue) {
|
|
138
138
|
this.fileList = this.urlList.map(url => {
|
|
139
139
|
const name = this.getUrlName(url)
|
|
140
|
+
const obj = {
|
|
141
|
+
id: null,
|
|
142
|
+
[this.nameField]: name,
|
|
143
|
+
[this.typeField]: this.getSuffix(name),
|
|
144
|
+
[this.urlField]: url
|
|
145
|
+
}
|
|
140
146
|
return {
|
|
141
147
|
id: null,
|
|
142
148
|
[this.nameField]: name,
|
|
143
149
|
[this.typeField]: this.getSuffix(name),
|
|
144
150
|
[this.urlField]: url,
|
|
145
|
-
tempPath:
|
|
151
|
+
tempPath: this.getUrl(obj)
|
|
146
152
|
}
|
|
147
153
|
})
|
|
148
154
|
this.selectUniFileList = this.urlList.map(url => {
|
|
@@ -239,6 +245,9 @@ export default {
|
|
|
239
245
|
this.selectUniFileList = this.selectUniFileList.filter(item => item.url !== tempFilePath)
|
|
240
246
|
this.fileList = this.fileList.filter(item => item.tempPath !== tempFilePath)
|
|
241
247
|
const removeMethod = this.removeFile ? this.removeFile : (globalStore.upload ? globalStore.upload.removeFile : null)
|
|
248
|
+
if (!item) {
|
|
249
|
+
console.error('删除出错!!!')
|
|
250
|
+
}
|
|
242
251
|
if (item && !item.id) {
|
|
243
252
|
if (removeMethod) {
|
|
244
253
|
removeMethod.call(this.currVM, {
|