Commit ed1b954c by liangzhen

添加路由名称

1 parent 853353a3
......@@ -185,6 +185,9 @@ export const routes = [
path: '/mainLayout/assistedViewing',
name: 'assistedViewing',
component: () => import('@/views/assessChecks/assistedViewing.vue'),
meta: {
title: "评估结果查看",
},
},
{
path: '/mainLayout/assitedDistribution',
......@@ -195,6 +198,9 @@ export const routes = [
path: '/mainLayout/auxiliaryInspection',
name: 'auxiliaryInspection',
component: () => import('@/views/assessChecks/auxiliaryInspection.vue'),
meta: {
title: "项目辅助检查",
},
},
{
path: '/mainLayout/auxiliaryQuery',
......@@ -205,6 +211,9 @@ export const routes = [
path: '/mainLayout/confirmRelease',
name: 'confirmRelease',
component: () => import('@/views/assessChecks/confirmRelease.vue'),
meta: {
title: "评估项目确认",
},
},
{
path: '/mainLayout/confirmChanges',
......@@ -215,6 +224,9 @@ export const routes = [
path: '/mainLayout/materialAcquisition',
name: 'materialAcquisition',
component: () => import('@/views/assessChecks/materialAcquisition.vue'),
meta: {
title: "评估材料提交",
},
},
{
path: '/mainLayout/materialAnalysis',
......
......@@ -54,6 +54,7 @@ export default {
isOpen: false,
openeds: ["0"], //默认展开导航栏
activeIndex: "",
routerTabs:[],
};
},
props: {
......@@ -89,10 +90,12 @@ export default {
this.$nextTick(() => {
this.$refs.kzMenu.activeIndex = this.$route.path;
});
}
// this.$refs.kzMenu.activeIndex = this.$route.path;
// this.activeIndex = this.$route.path;
console.log( this.$route.meta.title,'路由名字')
if(!this.routerTabs.includes(this.$route.meta.title)){
this.routerTabs.push(this.$route.meta.title)
}
console.log(this.routerTabs)
},
},
autho(newVal, oldVal) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!