From 2aee043484107856df09b5c80ea4ab5df10bfcb0 Mon Sep 17 00:00:00 2001 From: pxq <1456889284@qq.com> Date: Mon, 25 Jul 2022 12:30:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=94=A8=E6=88=B7=E6=A1=88=E4=BE=8B?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/.vitepress/src/components/AppFooter.vue | 3 ++- .../src/components/AppInfoDetail.vue | 7 +---- app/.vitepress/src/i18n/common/common-zh.ts | 6 ++--- .../src/views/showcase/TheShowCase.vue | 27 +++++-------------- .../009e4e30-a3e5-ecc4bdfd977b/index.md | 3 +++ 5 files changed, 16 insertions(+), 30 deletions(-) diff --git a/app/.vitepress/src/components/AppFooter.vue b/app/.vitepress/src/components/AppFooter.vue index d6b9a241c..36b4e5611 100644 --- a/app/.vitepress/src/components/AppFooter.vue +++ b/app/.vitepress/src/components/AppFooter.vue @@ -179,7 +179,8 @@ const handleNavClick = (path: string) => { {{ link.NAME }} { diff --git a/app/.vitepress/src/i18n/common/common-zh.ts b/app/.vitepress/src/i18n/common/common-zh.ts index d02f27c58..1a42cb68c 100644 --- a/app/.vitepress/src/i18n/common/common-zh.ts +++ b/app/.vitepress/src/i18n/common/common-zh.ts @@ -300,15 +300,15 @@ export default { RIGHT_LIST: [ { NAME: '品牌', - URL: '/other/brand/', + URL: 'https://www.openeuler.org/zh/other/brand/', }, { NAME: '隐私政策', - URL: '/other/privacy/', + URL: 'https://www.openeuler.org/zh/other/privacy/', }, { NAME: '法律声明', - URL: '/other/legal/', + URL: 'https://www.openeuler.org/zh/other/legal/', }, { NAME: '服务状态', diff --git a/app/.vitepress/src/views/showcase/TheShowCase.vue b/app/.vitepress/src/views/showcase/TheShowCase.vue index a5be490c7..3f093d3a2 100644 --- a/app/.vitepress/src/views/showcase/TheShowCase.vue +++ b/app/.vitepress/src/views/showcase/TheShowCase.vue @@ -104,7 +104,6 @@ function setCurrentCaseListAll() { CaseListAll.forEach((item: any, index: number) => { if (item.summary === '') { CaseListAll.splice(index, 1); - index--; } }); currentCaseListAll.value = CaseListAll; @@ -120,19 +119,7 @@ function searchCase() { activeIndex.value = 0; setCurrentCaseListAll(); } -function typeImgUrl(type: string) { - if (type === '金融') { - return '/img/showcase/finance.png'; - } else if (type === '运营商') { - return '/img/showcase/provider.png'; - } else if (type === '能源') { - return '/img/showcase/energy.png'; - } else if (type === '物流') { - return '/img/showcase/logistics.png'; - } else if (type === '其他') { - return '/img/showcase/others.png'; - } -} +// 获取所有案例及设置当前需要显示的案例 onMounted(() => { window.addEventListener('scroll', onscroll); getCaseTagData().then((res: any) => { @@ -217,12 +204,12 @@ onUnmounted(() => {