close #2152 Fixed: Wizard empty company logo issue #mqc23x
This commit is contained in:
parent
940b71ae47
commit
65bad4d6f7
@ -251,14 +251,23 @@ export default {
|
|||||||
for (let [key, val] of formData.entries()) {
|
for (let [key, val] of formData.entries()) {
|
||||||
Object.assign(data_name, {
|
Object.assign(data_name, {
|
||||||
[key]: val,
|
[key]: val,
|
||||||
["logo"]: this.$refs.dropzoneWizard.files[1]
|
});
|
||||||
? this.$refs.dropzoneWizard.files[1]
|
}
|
||||||
: this.$refs.dropzoneWizard.files[0],
|
|
||||||
|
let logo = '';
|
||||||
|
|
||||||
|
if (this.$refs.dropzoneWizard.files[1]) {
|
||||||
|
logo = this.$refs.dropzoneWizard.files[1];
|
||||||
|
} else if (this.$refs.dropzoneWizard.files[0]) {
|
||||||
|
logo = this.$refs.dropzoneWizard.files[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
Object.assign(data_name, {
|
||||||
|
["logo"]: logo,
|
||||||
["_prefix"]: "company",
|
["_prefix"]: "company",
|
||||||
["_token"]: window.Laravel.csrfToken,
|
["_token"]: window.Laravel.csrfToken,
|
||||||
["_method"]: "POST",
|
["_method"]: "POST",
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
formData.appendRecursive(data_name);
|
formData.appendRecursive(data_name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user