From e0bb4b3c59881764b4fabf937c142c3b7db23e0f Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Tue, 9 Jul 2024 22:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=89=88=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 30 +++++++++++++++--------------- src/views/HomeMain.vue | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index e0c45c89..bdfc0b77 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -11,9 +11,9 @@ const routes: Array = [ path: "/", // redirect重定向 // redirect: "/login" - redirect: "/upgrade" - // name: "HomeRecommend", - // component: _import('HomeRecommend'), + // redirect: "/upgrade" + name: "HomeRecommend", + component: _import('HomeRecommend'), }, { path: '/login', @@ -162,18 +162,18 @@ if (vuex_setSystemUser == 0 || vuex_setSystemUser == 1) { router.beforeEach((to, from, next) => { // 系统维护 - let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问 - const toName = to.name === 'upgrade'; - if(upgradeList.indexOf(to.path) > -1){ - next(); - }else{ - if (toName) { - next(); - } else { - next({ name: 'upgrade' }); - } - } - return + // let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问 + // const toName = to.name === 'upgrade'; + // if(upgradeList.indexOf(to.path) > -1){ + // next(); + // }else{ + // if (toName) { + // next(); + // } else { + // next({ name: 'upgrade' }); + // } + // } + // return // 检查路由是否存在 // 机房用户 let userInfo = JSON.parse(getCookie("userInfo") as any); diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index a94ce9a8..3c5a2581 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -295,9 +295,9 @@ export default defineComponent({ let url = 'https://code-create.com.hk/wp-content/uploads/2024/07/aida_3.0-使用手册-0705.pdf' if(this.locale == 'ENGLISH'){ url = 'https://code-create.com.hk/wp-content/uploads/2024/07/aida_3.0-Manual-0705.pdf' - showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2022/11/aida_video.mp4'}) + showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2024/07/AiDA-demo-video_0709_EN-2.mp4'}) }else{ - showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2022/11/aida_video.mp4'}) + showViewVideo({url:'https://code-create.com.hk/wp-content/uploads/2024/07/AiDA-demo-video_0709_CN-2.mp4'}) } //打开视频 const a = document.createElement('a');