From d5f88c5d33d2d99a9ba743f7b2290eff4fd455bd Mon Sep 17 00:00:00 2001 From: dzj <1140318653@qq.com> Date: Thu, 30 May 2024 13:44:48 +0800 Subject: [PATCH] init --- src/App.vue | 6 ++++++ src/views/project.vue | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/App.vue b/src/App.vue index 81f2fc0..47ecfd1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -63,6 +63,12 @@ export default{ // 监听滚动事件 window.addEventListener('scroll', this.handleScroll); console.log(request,111) + for(var i in this.routerlist){ + if(this.$route.path==this.routerlist[i]){ + this.activeIndex=i + } + + } }, beforeDestroy() { // 组件销毁前移除滚动事件监听 diff --git a/src/views/project.vue b/src/views/project.vue index 644f967..9745b5c 100644 --- a/src/views/project.vue +++ b/src/views/project.vue @@ -30,6 +30,9 @@ +
+
该工程暂无内容展示
+