// var aaa = Object.assign(paramsL, this.form);
console.log(typeof String(this.form.guide))
var paramsL = {
guide: String(this.form.guide),
menus: JSON.stringify(this.form.menus)
}
saveMenu(paramsL).then(response => {
console.log(response)
}).catch(function(error) {
console.log(error);
});
vue 向后台传递数组对象的参数
本文探讨了前端开发中如何将表单数据转换为正确格式并进行保存,涉及字符串转换、JSON序列化及异步请求处理。

被折叠的 条评论
为什么被折叠?



