From 6429d4b210fadb4face2ade0bbdc02926c444f72 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Wed, 03 Jan 2024 10:32:12 +0800 Subject: [PATCH] fix:公司官网新建 --- src/views/about.vue | 31 +++++++++++++------------------ 1 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/views/about.vue b/src/views/about.vue index 4ccfec2..19989ff 100644 --- a/src/views/about.vue +++ b/src/views/about.vue @@ -48,7 +48,7 @@ </el-row> </el-col> <el-col :span="12"> - <div class="overview"> + <el-scrollbar height="375px" class="overview" always> <p> ���������������������������������������������������������2013��������������������������������������������������������������������������������������������������������������������������������������������� </p> @@ -64,7 +64,8 @@ <p> ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ </p> - </div> + </el-scrollbar> + <!-- <div class="overview"></div> --> </el-col> </el-row> </div> @@ -132,18 +133,9 @@ console.log('router', route) }) const menuList = reactive([ - { - id: 0, - name: '������������' - }, - { - id: 1, - name: '������������' - }, - { - id: 2, - name: '������������' - } + { name: '������������', show: false, path: '/about', id: '5', hash: '#mian1' }, + { name: '������������', show: false, path: '/about', id: '51', hash: '#mian2' }, + { name: '������������', show: false, path: '/about', id: '52', hash: '#mian3' } ]) const historyList = reactive([ { @@ -169,15 +161,19 @@ }, { id: 3, - time: '2021������������', - name: '2021������������', - content: '2021������������' + time: '2024������������', + name: '2024������������', + content: '2024������������' } ]) const clickIndex = ref(menuList[0]) let changeCarouselIndex = ref(0) let changeClickIndex = (item: any) => { clickIndex.value = item + if (item.path !== '') { + let hash = item.hash ? item.hash : '' + router.push({ path: item.path, hash: hash, query: { name: item.name, id: item.id } }) + } } let remarkCaruselUp = ref() let changeCarouselItem = (index: any) => { @@ -280,7 +276,6 @@ .overview { width: 100%; height: 337px; - overflow: auto; p { color: #555555; line-height: 30px; -- Gitblit v1.8.0