fix(menu): 菜单项 与 目录 重复渲染
This commit is contained in:
parent
9f18058e9e
commit
dd4db47bd4
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user