Merge pull request #914 from qazwsx9288/bugFix
bugfix:修复菜单未设置icon时,vue会弹出vnode警告的bug;
This commit is contained in:
commit
7fe3c2b285
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-sub-menu ref="subMenu" :index="routerInfo.name">
|
||||
<template #title>
|
||||
<el-icon>
|
||||
<el-icon v-if="routerInfo.meta.icon">
|
||||
<component :is="routerInfo.meta.icon" />
|
||||
</el-icon>
|
||||
<span>{{ routerInfo.meta.title }}</span>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<el-menu-item :index="routerInfo.name">
|
||||
<el-icon>
|
||||
<el-icon v-if="routerInfo.meta.icon">
|
||||
<component :is="routerInfo.meta.icon" />
|
||||
</el-icon>
|
||||
<template #title>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column align="left" label="图标" min-width="140" prop="authorityName">
|
||||
<template #default="scope">
|
||||
<div class="icon-column">
|
||||
<div v-if="scope.row.meta.icon" class="icon-column">
|
||||
<el-icon>
|
||||
<component :is="scope.row.meta.icon" />
|
||||
</el-icon>
|
||||
|
|
Loading…
Reference in New Issue