You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在src/layout/components/TagsView/index.vue中,line 115,运行报错,使用for of 遍历对象,出错... Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a Symbol.iterator method.
我的解决方案:
for(constindexofObject.keys(tags)){// console.log(tags[index]);lettag=tags[index]console.log('tag: ',tag);if(!tag)returnif(tag.path===this.$route.path){this.$refs.scrollPane.moveToTarget(tag)// when query is different then updateif(tag.fullPath!==this.$route.fullPath){this.$store.dispatch('tagsView/updateVisitedView',this.$route)}}}
The text was updated successfully, but these errors were encountered:
在src/layout/components/TagsView/index.vue中,line 115,运行报错,使用for of 遍历对象,出错...
Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a Symbol.iterator method.
我的解决方案:
The text was updated successfully, but these errors were encountered: