cloud-web-corejs 1.0.54-dev.443 → 1.0.54-dev.445
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.
package/package.json
CHANGED
|
@@ -331,8 +331,8 @@ export default {
|
|
|
331
331
|
|
|
332
332
|
let param = {
|
|
333
333
|
row: attachment,
|
|
334
|
-
rowIndex: index
|
|
335
|
-
}
|
|
334
|
+
rowIndex: index,
|
|
335
|
+
};
|
|
336
336
|
let deleteParam =
|
|
337
337
|
this.handleCustomEvent(
|
|
338
338
|
this.field.options.vabupload2_deleteParam,
|
|
@@ -341,13 +341,24 @@ export default {
|
|
|
341
341
|
) || {};
|
|
342
342
|
Object.assign(reqData, deleteParam);
|
|
343
343
|
|
|
344
|
+
// let url = this.deleteUrl + "?fileName=" + filename;
|
|
345
|
+
|
|
346
|
+
var form = new FormData();
|
|
347
|
+
form.append("fileName", filename);
|
|
348
|
+
Object.keys(reqData).forEach((key) => {
|
|
349
|
+
let value = reqData[key];
|
|
350
|
+
form.append(key, value);
|
|
351
|
+
});
|
|
352
|
+
|
|
344
353
|
this.getFormRef().$http({
|
|
345
|
-
url: this.deleteUrl
|
|
354
|
+
url: this.deleteUrl,
|
|
346
355
|
method: "post",
|
|
347
|
-
data: reqData,
|
|
356
|
+
// data: reqData,
|
|
357
|
+
data: form,
|
|
348
358
|
// responseType: "RAW",
|
|
349
359
|
headers: {
|
|
350
|
-
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
360
|
+
// "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
|
|
361
|
+
"Content-Type": "multipart/form-data",
|
|
351
362
|
Authorization: `Bearer ${this.token}`,
|
|
352
363
|
},
|
|
353
364
|
useToken: false,
|
|
@@ -6,10 +6,8 @@
|
|
|
6
6
|
import defaultView from "@base/views/user/login/default.vue";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
name:
|
|
10
|
-
components: {defaultView}
|
|
11
|
-
}
|
|
9
|
+
name: "Login",
|
|
10
|
+
components: { defaultView },
|
|
11
|
+
};
|
|
12
12
|
</script>
|
|
13
|
-
<style lang="scss" scoped>
|
|
14
|
-
|
|
15
|
-
</style>
|
|
13
|
+
<style lang="scss" scoped></style>
|