代码微调,解决控制台警告

This commit is contained in:
hooray 2021-10-19 02:02:07 +08:00
parent ec57941720
commit 3b7ab4d4f2

View File

@ -1,6 +1,6 @@
<template>
<div v-if="item.meta.sidebar !== false" class="sidebar-item">
<el-sub-menu v-if="item.path == undefined" :title="item.meta.title" :index="item">
<el-sub-menu v-if="item.path == undefined" :title="item.meta.title" :index="JSON.stringify(item)">
<template #title>
<svg-icon v-if="item.meta.icon" :name="item.meta.icon" class="icon" />
<span class="title">{{ item.meta.title }}</span>