浏览代码

修改报错问题

zengyicheng 2 年之前
父节点
当前提交
bbad0bda0c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/liveProjectDetail.vue

+ 2 - 2
src/components/liveProjectDetail.vue

@@ -1099,8 +1099,8 @@ export default {
           this.toolsList.push({ tools: this.tools[page - 1].tools });
         }
         if (
-          this.toolsList[0].tools[0] == 14 ||
-          this.toolsList[0].tools[0] == 12
+          this.toolsList[0].tools &&
+          (this.toolsList[0].tools[0] == 14 || this.toolsList[0].tools[0] == 12)
         ) {
           this.isBlock = 0;
         }