fix: 增加菜单路由跳转

This commit is contained in:
@changcode
2022-08-26 16:24:29 +08:00
parent 11b1941146
commit ad6a11bcae
3 changed files with 12 additions and 10 deletions

View File

@@ -49,7 +49,8 @@ $--color-monitor: #98AEC5; //全局停用色灰色
$--chart-single-value-icon-background-color: #E8F6FF; $--chart-single-value-icon-background-color: #E8F6FF;
$--content-right-background-color: #fff; //右侧背景色 //$--content-right-background-color: #fff; //右侧背景色
$--content-right-background-color: #EFF2F5;
// 空白背景色 // 空白背景色
$--background-color-empty: #fffffe; $--background-color-empty: #fffffe;

View File

@@ -95,7 +95,7 @@
:show-close="false" :show-close="false"
> >
<div class="cn-menu__left"> <div class="cn-menu__left">
<div class="left-menu" v-for="menu in otherMenu" :key="menu.id"> <div class="left-menu" v-for="menu in otherMenu" :key="menu.id" @click="jump(menu.route)">
<i :class="menu.icon"></i> <i :class="menu.icon"></i>
<span>{{$t(menu.i18n || menu.name)}}</span> <span>{{$t(menu.i18n || menu.name)}}</span>
<i class="cn-icon cn-icon-right"></i> <i class="cn-icon cn-icon-right"></i>
@@ -453,17 +453,18 @@ export default {
params: { ...this.$route.params, fourthPanel: '', thirdPanel: '' } params: { ...this.$route.params, fourthPanel: '', thirdPanel: '' }
}) })
} }
if (route === this.route) { if (route === this.route) {
this.refresh() this.refresh()
return return
} }
this.$router.push({ if (route) {
path: route, this.$router.push({
query: { path: route,
t: +new Date() query: {
} t: +new Date()
}) }
})
}
}, },
dropDownSearch () { dropDownSearch () {
this.curPageNum = 1 this.curPageNum = 1

View File

@@ -16,7 +16,7 @@ export const pieChartOption1 = {
color: chartColor1, color: chartColor1,
legend: { legend: {
orient: 'vertical', orient: 'vertical',
top: 35, top: '25%',
left: '50%', left: '50%',
itemGap: 4, itemGap: 4,
itemWidth: 15, itemWidth: 15,