Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix:修复菜单未设置icon时,vue会弹出vnode警告的bug; #914

Merged
merged 1 commit into from Feb 15, 2022

Conversation

qazwsx9288
Copy link
Contributor

菜单的icon本身为可选项,但未设置菜单的icon时,vue会发出警告:
Invalid vnode type when creating vnode: . at

这是由于routerInfo.meta.icon为空时,将空字符串交由el-icon去渲染图标导致的。现用v-if指令避免这种情况发生。

@piexlmax piexlmax merged commit 3426d87 into flipped-aurora:main Feb 15, 2022
Stephen-Z pushed a commit to Stephen-Z/gin-vue-admin that referenced this pull request Jul 12, 2023
bugfix:修复菜单未设置icon时,vue会弹出vnode警告的bug;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant