vue({
style: {
preprocessOptions: {
additionalData: globalScssData // @import 'some-path/mixins.scss'; для глобального импорта
},
preprocessLang: 'scss' // используемый препроцессор: 'less' | 'sass' | 'scss' | 'styl' | 'stylus'
}
}),
get_details(id) {
let url = 'http://127.0.0.1:8000/api/company/' + id + '/details?detail=1';
let are;
axios.get(url
).then((response) => {
let Observer = this.$data.__ob__.constructor;
response.data["detail"].__ob__ = new Observer({});
are = response.data["detail"];
let content = {
"id": id,
"content": are
};
this.$store.dispatch('set_company_card_content', content);
this.draw(this.$store.getters.get_company_card_content);
}).catch((error) => {
console.log(error);
});
},
draw(value) {
this.about_company = value[0].content.about_company;
}
for (let k in arr) {
if (k === "contacts") {
for (let i in arr[k]) {
formData.append("contacts", JSON.stringify(arr[k][i]));
}
} else {
formData.append(k, JSON.stringify(arr[k]));
}
}
<QueryDict: {'email': [''], 'password': ['null'], 'password_confirm': ['null'], 'surname': [''], 'name': [''], 'middlename': [''], 'contacts': ['{"contact_type":"mail","contact":"ываыва"}', '{"contact_type":"mail","contact":"ывааааа"}'], 'city': ['null'], 'photo': ['undefined']}>