From 37cb81763a3aa1257c8c05881e114021899060f1 Mon Sep 17 00:00:00 2001 From: lixg Date: Wed, 14 Dec 2022 17:24:00 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/api/config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2354d8c4..b85229f3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -44,7 +44,7 @@ export default defineComponent({ const store = useStore(); const isLogin = ref(false); // console.log("router", router.getRoutes(), route); - console.log("版本0.9.13------------"); + console.log("版本0.9.14------------"); const routes = computed(() => { return router.getRoutes().filter((e) => e.meta?.isLink); }); diff --git a/src/api/config.js b/src/api/config.js index ec213068..705f7897 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-12-14 09:04:31 + * @LastEditTime: 2022-12-14 17:22:48 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -56,7 +56,7 @@ http.interceptors.response.use( return response; } else { if (code === 1000) { - // window.open("https://u-pre.boe.com/web/", '_self'); + window.open("https://u-pre.boe.com/web/", '_self'); // window.open("http://111.231.196.214:12013/manage/login", '_self'); } console.log("api %o", msg); From 6dda7355a6f75c1cb3b8cf63973eb7f412c7c506 Mon Sep 17 00:00:00 2001 From: lixg Date: Wed, 14 Dec 2022 17:37:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 2 +- src/api/method.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index 705f7897..80cc989e 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-12-14 17:22:48 + * @LastEditTime: 2022-12-14 17:35:43 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ diff --git a/src/api/method.js b/src/api/method.js index a10dafa0..771df5d4 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -193,7 +193,7 @@ const setCookie = (name, value, perpetual) => { //先写一个方法 function getCookie(name) { - return document.cookie?.split(";").find(e => e.includes(name)).replace(`${name}=`,'') || '' + return document.cookie?.split(";").find(e => e.includes(name)).replace(`${name}=`, '') || '' //1.获取cookie字符串 // const cookies = document.cookie; // console.log('cookies',cookies) @@ -219,7 +219,7 @@ function getCookie(name) { //滚动加载信息 const scrollLoad = (e) => { // console.log("滚动", e, b); - const {target} = e; + const { target } = e; const scrllHeight = target.scrollHeight - target.scrollTop; const clientHeight = target.clientHeight; // console.log("scrllHeight", scrllHeight, clientHeight); From 652282773f5f73392f7a3dd197e0f9825f92b2da Mon Sep 17 00:00:00 2001 From: lixg Date: Wed, 14 Dec 2022 17:52:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 2 +- src/api/method.js | 4 ++++ src/components/NavTop.vue | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index 80cc989e..df04b6ff 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-12-14 17:35:43 + * @LastEditTime: 2022-12-14 17:51:50 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ diff --git a/src/api/method.js b/src/api/method.js index 771df5d4..c3ed4f2a 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -277,6 +277,9 @@ const organizationalTree = [] //嵌套页面 const iframeUrl = "https://u-pre.boe.com/pc/iframe" +//学员端路由 +const studentUrl = 'https://u.boe.com/pc/uc/study/courses' + //二维码 const codeUrl = "https://u-pre.boe.com" export { @@ -292,5 +295,6 @@ export { commonData, organizationalTree, iframeUrl, + studentUrl, codeUrl, } \ No newline at end of file diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue index 797a6847..b69ba583 100644 --- a/src/components/NavTop.vue +++ b/src/components/NavTop.vue @@ -61,7 +61,7 @@ import { reactive, toRefs } from "vue"; import DownLoad from "../components/drawers/DownLoad"; import * as api from "../api/index1"; - +import { studentUrl } from "../api/method"; export default { name: "NavTop", components: { @@ -81,7 +81,7 @@ export default { { id: 2, name: "学员", - go: "https://u.boe.com/pc/uc/study/courses", + go: studentUrl, }, ],