Prechádzať zdrojové kódy

paper generating re-construction

hare8999@163.com 2 rokov pred
rodič
commit
558af89eea
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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)
     }