module index 和菜单使用相同的路由跳转逻辑
Former-commit-id: 2f76399b0b5aaf322a6cebd3568b4548c36c2cdf [formerly e996a77cf10a373f0e0d81721424667dca65af31] [formerly 2f76399b0b5aaf322a6cebd3568b4548c36c2cdf [formerly e996a77cf10a373f0e0d81721424667dca65af31] [formerly 2f76399b0b5aaf322a6cebd3568b4548c36c2cdf [formerly e996a77cf10a373f0e0d81721424667dca65af31] [formerly e996a77cf10a373f0e0d81721424667dca65af31 [formerly 6c1273298c08f1b9cf2505992ac7b6f0de8e4588 [formerly f64555e2dd133fe8d1b61c4502c91bdc546171e2]]]]] Former-commit-id: aaec64a1729363181302bb856fcbe64e243f9871 Former-commit-id: 5cfded1e6acf2610eb1dc9ca11f84fcee0def4ab Former-commit-id: 6db2d4d93f7809ff59f36381d18e660d74f73d4c [formerly 73a93e0b15176202f143a9a57794370a58d0f9cf] Former-commit-id: 626c50b4a567eb2621e7e071aa24aa274b4d8dd4 Former-commit-id: 3f89e6c8f9e483b8b6cbab944cff1b808db6e4ef Former-commit-id: 5d356777464c6aa5ff849c622c87ccbbc3831249 Former-commit-id: c01dae77899fdf8a5f12c0edd1d369458ccd767b Former-commit-id: 611bd3819a80713ab49e28f4bb609eaac1f3bf01
This commit is contained in:
@@ -1,24 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
class="d2-module-index-menu-item"
|
class="d2-module-index-menu-item"
|
||||||
@click="handleClick">
|
@click="handleMenuSelect(menu.path)">
|
||||||
{{menu.title}}
|
{{menu.title}}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import mixinMenu from '@/layout/header-aside/components/mixin/menu'
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [
|
||||||
|
mixinMenu
|
||||||
|
],
|
||||||
props: {
|
props: {
|
||||||
menu: {
|
menu: {
|
||||||
default: () => ({})
|
default: () => ({})
|
||||||
}
|
}
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
handleClick () {
|
|
||||||
if (this.menu.path) {
|
|
||||||
this.$router.push(this.menu.path)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user