处理对象拷贝问题

上级 09960ce4
...@@ -715,8 +715,23 @@ export default { ...@@ -715,8 +715,23 @@ export default {
}, },
// 提交 // 提交
submitQuestion() { submitQuestion() {
if (vm.questionEditList.showType == 1) {
// 单题显示
vm.questionEditList.questionIntro = "";
vm.questionEditList.headDiagramUrl = "";
} else {
vm.questionEditList.nextDisableClickUrl = "";
vm.questionEditList.nextClickUrl = "";
}
if (!vm.questionEditList.id) {
if (commonUtil.isEmptyList(vm.fileArray)) {
vm.$message.info("请导入题库");
return;
}
}
let req = { let req = {
model: vm.questionEditList, model: JSON.parse(JSON.stringify(vm.questionEditList)),
fileArray: vm.fileArray, fileArray: vm.fileArray,
loginAuth: [] loginAuth: []
}; };
...@@ -739,20 +754,7 @@ export default { ...@@ -739,20 +754,7 @@ export default {
"<br>" "<br>"
); );
// console.log(req); // console.log(req);
if (vm.questionEditList.showType == 1) {
// 单题显示
vm.questionEditList.questionIntro = "";
vm.questionEditList.headDiagramUrl = "";
} else {
vm.questionEditList.nextDisableClickUrl = "";
vm.questionEditList.nextClickUrl = "";
}
if (!vm.questionEditList.id) {
if (commonUtil.isEmptyList(vm.fileArray)) {
vm.$message.info("请导入题库");
return;
}
}
vm.$refs.questionForm.validate(valid => { vm.$refs.questionForm.validate(valid => {
if (valid) { if (valid) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册