From dd11f3577e123b5ef1dd790b76890662d5e2cfa7 Mon Sep 17 00:00:00 2001 From: lixg Date: Wed, 14 Dec 2022 17:42:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 2 +- src/api/method.js | 6 +- src/components/NavTop.vue | 4 +- src/router/index.js | 4 +- src/views/projectcenter/templateAdd.vue | 187 +++++++++++++----------- vue.config.js | 6 +- 6 files changed, 109 insertions(+), 100 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index b726a884..33869ee1 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-13 09:24:16 + * @LastEditTime: 2022-12-14 17:40:35 * @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..243ae474 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); @@ -276,7 +276,7 @@ const commonData = { const organizationalTree = [] //嵌套页面 -const iframeUrl = "https://u-pre.boe.com/pc/iframe" +const iframeUrl = "https://u-pre.boe.com/pc-release/iframe" //二维码 const codeUrl = "https://u-pre.boe.com" export { diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue index 306d7b78..31b9dd2c 100644 --- a/src/components/NavTop.vue +++ b/src/components/NavTop.vue @@ -76,12 +76,12 @@ export default { { id: 1, name: "管理员", - go: "/manage/learningpath", + go: "/manage-release/learningpath", }, { id: 2, name: "学员", - go: "https://u.boe.com/pc/uc/study/courses", + go: "https://u.boe.com/manage-release/uc/study/courses", }, ], diff --git a/src/router/index.js b/src/router/index.js index 75da5b5a..07ef4a8e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-09 09:26:26 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-21 17:42:59 + * @LastEditTime: 2022-12-14 17:38:53 * @FilePath: /fe-manage/src/router/index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -17,7 +17,7 @@ const routes = [ ...routesConfig ] const router = createRouter({ - history: createWebHistory("/manage/"), + history: createWebHistory("/manage-release/"), routes, }) diff --git a/src/views/projectcenter/templateAdd.vue b/src/views/projectcenter/templateAdd.vue index 47bc4d87..adfee657 100644 --- a/src/views/projectcenter/templateAdd.vue +++ b/src/views/projectcenter/templateAdd.vue @@ -4,10 +4,10 @@
创建/编辑单层模板
返回
@@ -17,25 +17,25 @@
模板名称
分类
@@ -43,18 +43,18 @@
-
+
封面图
avatar
@@ -82,53 +82,53 @@
项目时间
项目经理
资源归属
@@ -138,11 +138,11 @@
@@ -151,24 +151,23 @@
同步学习记录
- 同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
项目级别
@@ -179,8 +178,8 @@
培训体系
@@ -191,15 +190,13 @@
是否BOEU实施
- + @@ -210,20 +207,18 @@