From 1651a734c95020a07f158faa3ad709701aefe671 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 22 Jun 2022 19:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9E=E6=8E=A5=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TopNav/Index.vue | 17 +++++++++++++---- src/utils/caseShow.js | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index e260a65b..8d64ba88 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -156,12 +156,21 @@ export default { this.signInShow=false; }, handleCommand(val) { + // let obj = { + // one: process.env.VUE_APP_BOE_WEB_URL+'/web/teacherLesson', + // two: process.env.VUE_APP_BOE_WEB_URL+'/grow180/login', + // three: this.webBaseUrl + '/study/index', + // four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', + // five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html' + // }; + let urlPre=window.location.protocol+'//'+window.location.host; + // process.env.VUE_APP_BOE_WEB_URL let obj = { - one: process.env.VUE_APP_BOE_WEB_URL+'/web/teacherLesson', - two: process.env.VUE_APP_BOE_WEB_URL+'/grow180/login', - three: this.webBaseUrl + '/study/index', + one: urlPre+'/web/teacherLesson', + two: urlPre+'/grow180/login', + three: this.webBaseUrl + '/study/index?study=1', four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', - five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html' + five: urlPre+'/boe/new-employee/index.html' }; window.open(obj[val]); }, diff --git a/src/utils/caseShow.js b/src/utils/caseShow.js index 6c378221..ae1f771d 100644 --- a/src/utils/caseShow.js +++ b/src/utils/caseShow.js @@ -1,5 +1,6 @@ /**页面设置的一些常量*/ const caseUser={ + '12345601': '测试', '00004409': '李玉冰', '101215': '徐涛', '00005011': '邱炜玮',