Procházet zdrojové kódy

paper generating re-construction

hare8999@163.com před 2 roky
rodič
revize
558af89eea
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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)
     }