Sfoglia il codice sorgente

paper generating re-construction

hare8999@163.com 2 anni fa
parent
commit
558af89eea
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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)
     }