perf: fixed eslint errors
This commit is contained in:
parent
56bd080b54
commit
1e5d2c0ed2
|
@ -17,11 +17,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isExternalLink(routePath) {
|
|
||||||
return isExternal(routePath)
|
|
||||||
},
|
|
||||||
linkProps(url) {
|
linkProps(url) {
|
||||||
if (this.isExternalLink(url)) {
|
if (isExternal(url)) {
|
||||||
return {
|
return {
|
||||||
is: 'a',
|
is: 'a',
|
||||||
href: url,
|
href: url,
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
<item v-if="item.meta" :icon="item.meta.icon" :title="generateTitle(item.meta.title)" />
|
<item v-if="item.meta" :icon="item.meta.icon" :title="generateTitle(item.meta.title)" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-for="child in item.children" v-if="!child.hidden">
|
<template v-for="child in item.children">
|
||||||
|
<template v-if="!child.hidden">
|
||||||
<sidebar-item
|
<sidebar-item
|
||||||
v-if="child.children&&child.children.length>0"
|
v-if="child.children&&child.children.length>0"
|
||||||
:is-nest="true"
|
:is-nest="true"
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</app-link>
|
</app-link>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column align="center" label="Drag" width="80">
|
<el-table-column align="center" label="Drag" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="{}">
|
||||||
<svg-icon class="drag-handler" icon-class="drag"/>
|
<svg-icon class="drag-handler" icon-class="drag"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
Loading…
Reference in New Issue