|
@@ -26,11 +26,11 @@
|
|
|
:to="{ path: '/service/characteristic' }"
|
|
|
>资源发布</router-link>
|
|
|
</p>
|
|
|
-<!-- <p>-->
|
|
|
-<!-- <router-link-->
|
|
|
-<!-- :to="{ path: '/zhaoshang/list' }"-->
|
|
|
-<!-- >政策服务</router-link>-->
|
|
|
-<!-- </p>-->
|
|
|
+ <!-- <p>-->
|
|
|
+ <!-- <router-link-->
|
|
|
+ <!-- :to="{ path: '/zhaoshang/list' }"-->
|
|
|
+ <!-- >政策服务</router-link>-->
|
|
|
+ <!-- </p>-->
|
|
|
<p>
|
|
|
<router-link
|
|
|
:to="{ path: '/service/activities' }"
|
|
@@ -289,12 +289,34 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getData()
|
|
|
- console.log('menuPlace', this.menuPlace)
|
|
|
+ this.getMenu()
|
|
|
},
|
|
|
methods: {
|
|
|
- // changeMenu() {
|
|
|
- // this.getMenuPlace()
|
|
|
- // },
|
|
|
+ getMenu() {
|
|
|
+ if (this.$route.path === '/') {
|
|
|
+ this.menuPlace = '首页'
|
|
|
+ } if (this.$route.path === '/serviceLocator') {
|
|
|
+ this.menuPlace = '园区介绍'
|
|
|
+ }
|
|
|
+ if (this.$route.path === '/service/characteristic' || this.$route.path === '/service/activities' || this.$route.path === '/service/educate') {
|
|
|
+ this.menuPlace = '企业服务'
|
|
|
+ }
|
|
|
+ if (this.$route.path === '/zhaoshang/list') {
|
|
|
+ this.menuPlace = '政策服务'
|
|
|
+ }
|
|
|
+ if (this.$route.path === '/jobs/list') {
|
|
|
+ this.menuPlace = '优质人才'
|
|
|
+ }
|
|
|
+ if (this.$route.path === '/company/list') {
|
|
|
+ this.menuPlace = '知名企业'
|
|
|
+ }
|
|
|
+ if (this.$route.path === '/notice/list') {
|
|
|
+ this.menuPlace = '园区通知'
|
|
|
+ }
|
|
|
+ if (this.$route.path === '/contact') {
|
|
|
+ this.menuPlace = '联系我们'
|
|
|
+ }
|
|
|
+ },
|
|
|
changeMenu(e) {
|
|
|
this.menuPlace = e
|
|
|
},
|