发版部署

This commit is contained in:
X1627315083
2024-07-09 22:53:04 +08:00
parent 62b7e32e3e
commit e0bb4b3c59
2 changed files with 17 additions and 17 deletions

View File

@@ -11,9 +11,9 @@ const routes: Array<RouteRecordRaw> = [
path: "/", path: "/",
// redirect重定向 // redirect重定向
// redirect: "/login" // redirect: "/login"
redirect: "/upgrade" // redirect: "/upgrade"
// name: "HomeRecommend", name: "HomeRecommend",
// component: _import('HomeRecommend'), component: _import('HomeRecommend'),
}, },
{ {
path: '/login', path: '/login',
@@ -162,18 +162,18 @@ if (vuex_setSystemUser == 0 || vuex_setSystemUser == 1) {
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// 系统维护 // 系统维护
let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问 // let upgradeList = ['/feedbackSurvey','/feedbackSurveyCN']//指定页面系统维护也可以访问
const toName = to.name === 'upgrade'; // const toName = to.name === 'upgrade';
if(upgradeList.indexOf(to.path) > -1){ // if(upgradeList.indexOf(to.path) > -1){
next(); // next();
}else{ // }else{
if (toName) { // if (toName) {
next(); // next();
} else { // } else {
next({ name: 'upgrade' }); // next({ name: 'upgrade' });
} // }
} // }
return // return
// 检查路由是否存在 // 检查路由是否存在
// 机房用户 // 机房用户
let userInfo = JSON.parse(getCookie("userInfo") as any); let userInfo = JSON.parse(getCookie("userInfo") as any);

View File

@@ -295,9 +295,9 @@ export default defineComponent({
let url = 'https://code-create.com.hk/wp-content/uploads/2024/07/aida_3.0-使用手册-0705.pdf' let url = 'https://code-create.com.hk/wp-content/uploads/2024/07/aida_3.0-使用手册-0705.pdf'
if(this.locale == 'ENGLISH'){ if(this.locale == 'ENGLISH'){
url = 'https://code-create.com.hk/wp-content/uploads/2024/07/aida_3.0-Manual-0705.pdf' 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{ }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'); const a = document.createElement('a');