写代码时,name是一个[0,1]的数组 通过深拷贝传进来的参数解决问题
configureAssignment(state, name) {
// debugger
// var _obj = JSON.stringify(name);
// name = JSON.parse(_obj);
if (name[0] == null){
state.uploadparameter.epoch = "16"
state.uploadparameter["batch size"] = "50"
state.uploadparameter["learning rate"] = "0.001"
}else{
state.uploadparameter = name[0];
}
},