|
|
@@ -3481,7 +3481,7 @@ export default {
|
|
|
},
|
|
|
toolBtn2(type, id, tool){
|
|
|
let _data = this.pptCourseJson.toolsList.find(i => i.id === id || i.url === id);
|
|
|
- this.editId = _data.id;
|
|
|
+ this.editId = _data ? _data.id : 1;
|
|
|
if (tool == 45) {
|
|
|
this.testJsonName = "";
|
|
|
this.testJsonBrief = "";
|
|
|
@@ -3524,6 +3524,9 @@ export default {
|
|
|
} else if (tool == 79) {
|
|
|
this.answerQ = "";
|
|
|
this.addPhoto();
|
|
|
+ }else if (tool == 84){
|
|
|
+ this.answerQ = "";
|
|
|
+ this.addFile();
|
|
|
}
|
|
|
},
|
|
|
clearLine() {
|