Ver código fonte

paper generating re-construction

hare8999@163.com 2 anos atrás
pai
commit
558af89eea
1 arquivos alterados com 2 adições e 1 exclusões
  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)
     }