fix(menu): 菜单项 与 目录 重复渲染

This commit is contained in:
就眠仪式 2021-10-11 00:16:35 +08:00
parent 9f18058e9e
commit dd4db47bd4

View File

@ -1,7 +1,4 @@
<template>
<li class="layui-nav-item" @click="selectHandle()" :class="[selectKey === id ? 'layui-this':'']">
<a href="javascript:void(0)">{{ title }} </a>
</li>
<li
class="layui-nav-item"
@ -22,6 +19,10 @@
<slot></slot>
</dl>
</li>
<li v-else class="layui-nav-item" @click="selectHandle()" :class="[selectKey === id ? 'layui-this':'']">
<a href="javascript:void(0)">{{ title }} </a>
</li>
</template>
<script setup name="LayMenuItem" lang="ts">