之前是object
把返回值加上JSON.stringify()之后。就正常了
let formdata = new FormData();
formdata.append('name', this.ruleForm.name);
formdata.append('description', this.ruleForm.description);
formdata.append('categories', JSON.stringify(this.ruleForm.dynamicTags));
formdata.append('personal', this.ruleForm.personal);
this.$axios.post("/exam/createRepo", formdata).then(response => {
console.log(response.data.result);
if (response.data.status === global.responseCode.OK) {
console.log("题库创建成功");
this.ruleForm.tip = "题库创建成功,即将跳转到题库中心......";
// setTimeout("javascript:location.href='/personalquestionbank'", 1000);
} else {
this.ruleForm.tip = "题库创建失败: " + response.data.msg;
console.log("题库创建失败:" + response.data.msg);
}
}).catch(function (error) {
console.log("*************");
console.log(error);
})