Browse Source

paper generating re-construction

hare8999@163.com 2 năm trước cách đây
mục cha
commit
558af89eea
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/questioncenter/generating.vue

+ 2 - 1
src/views/questioncenter/generating.vue

@@ -90,7 +90,8 @@ export default {
   },
   watch: {
     currentTab: function(newVal) {
-      const key = newVal.content
+      const key = newVal?.content
+      if (!key) return // safe check
       if (this.tabVisited.includes(key)) return
       this.tabVisited.push(key)
     }