|
@@ -605,6 +605,7 @@ export default {
|
|
|
* @param id
|
|
|
*/
|
|
|
onQuestionToggle(index, id, e) {
|
|
|
+ console.log(e)
|
|
|
let curClassName = e.target.className;
|
|
|
if (
|
|
|
curClassName === "item-tools" ||
|
|
@@ -620,7 +621,8 @@ export default {
|
|
|
this.collapseList.splice(listIndex, 1);
|
|
|
} else {
|
|
|
this.collapseList.push(index);
|
|
|
- let exerciseItemDom = e.path.filter(
|
|
|
+ let path = this.$tools.composedPath(e)
|
|
|
+ let exerciseItemDom = path.filter(
|
|
|
(i) => i.className === "exercise-item"
|
|
|
);
|
|
|
if (exerciseItemDom.length) {
|