fix(menu): 菜单项 与 目录 重复渲染
This commit is contained in:
parent
9f18058e9e
commit
dd4db47bd4
@ -1,7 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<li class="layui-nav-item" @click="selectHandle()" :class="[selectKey === id ? 'layui-this':'']">
|
|
||||||
<a href="javascript:void(0)">{{ title }} </a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li
|
<li
|
||||||
class="layui-nav-item"
|
class="layui-nav-item"
|
||||||
@ -22,6 +19,10 @@
|
|||||||
<slot></slot>
|
<slot></slot>
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li v-else class="layui-nav-item" @click="selectHandle()" :class="[selectKey === id ? 'layui-this':'']">
|
||||||
|
<a href="javascript:void(0)">{{ title }} </a>
|
||||||
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="LayMenuItem" lang="ts">
|
<script setup name="LayMenuItem" lang="ts">
|
||||||
|
Loading…
Reference in New Issue
Block a user