Skip to content

Commit b3862a6

Browse files
xkcodingtangjinzhou
authored and
tangjinzhou
committed
fix: use continue instead of break (vueComponent#1)
1 parent 52a8ed9 commit b3862a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/SiderMenu.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default {
6363
const menuData = [];
6464
for (let item of routes) {
6565
if (item.meta && item.meta.authority && !check(item.meta.authority)) {
66-
break;
66+
continue;
6767
}
6868
if (item.name && !item.hideInMenu) {
6969
this.openKeysMap[item.path] = parentKeys;

0 commit comments

Comments
 (0)