zy1125 1 year ago
parent
commit
881e247442
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/components/home.vue

+ 4 - 2
src/components/home.vue

@@ -219,8 +219,10 @@ export default ({
219
             if(data=='quit_class'){
219
             if(data=='quit_class'){
220
 
220
 
221
                 //消失线
221
                 //消失线
222
-                lineContainer.value.remove()
223
-                lineContainer.value = null
222
+                if (lineContainer.value) {
223
+                    lineContainer.value.remove()
224
+                    lineContainer.value = null
225
+                }
224
                 //消失点击详情
226
                 //消失点击详情
225
                 popoverRef.value.style.display = "none"
227
                 popoverRef.value.style.display = "none"
226
                 //消失面板
228
                 //消失面板