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