diff --git a/dist.zip b/dist.zip new file mode 100644 index 00000000..ff42f1b9 Binary files /dev/null and b/dist.zip differ diff --git a/src/api/config.js b/src/api/config.js index c863cc62..3562efbb 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,12 +2,12 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-11-25 15:52:59 + * @LastEditTime: 2022-11-25 17:33:03 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import axios from "axios"; -import { getCookie } from '../api/method' +// import { getCookie } from '../api/method' // const Qs = require("qs"); // axios.defaults.headers.post["Content-Type"] = @@ -24,8 +24,8 @@ const http = axios.create({ http.interceptors.request.use( (config) => { - // const token = localStorage.getItem("token"); - const token = getCookie('token') + const token = localStorage.getItem("token"); + // const token = getCookie('token') // console.log('token', token) if (token) { config.headers.token = token; //测试1111 @@ -54,7 +54,7 @@ http.interceptors.response.use( if (code === 0 || code === 200) { return response; } else { - window.open("https://u-pre.boe.com/web/", '_self'); + // window.open("https://u-pre.boe.com/web/", '_self'); console.log("api %o", msg); } return response; diff --git a/src/assets/images/avatar.png b/src/assets/images/avatar.png new file mode 100644 index 00000000..045535a4 Binary files /dev/null and b/src/assets/images/avatar.png differ diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue index 0f58df47..fecadcd2 100644 --- a/src/components/NavTop.vue +++ b/src/components/NavTop.vue @@ -23,13 +23,13 @@
{{ username }}
@@ -49,7 +49,7 @@ style="width: 27px; height: 27px" src="../assets/images/navtop/signout.png" /> - 退出 + 登出 @@ -73,10 +73,12 @@ export default { { id: 1, name: "管理员", + go: "/manage/learningpath", }, { id: 2, name: "学员", + go: "https://u.boe.com/pc/uc/study/courses", }, ], @@ -86,6 +88,7 @@ export default { state.roleList.map((item) => { if (value.name === item.name) { state.selectRole = item.name; + window.open(item.go, "_self"); } }); }; diff --git a/src/components/drawers/PowerList.vue b/src/components/drawers/PowerList.vue index 20253165..1210a044 100644 --- a/src/components/drawers/PowerList.vue +++ b/src/components/drawers/PowerList.vue @@ -29,11 +29,15 @@
-
+
搜索
-
+
重置
@@ -50,13 +54,13 @@ @expand="expandTable" :scroll="{ x: 900 }" :pagination="false" - />
@@ -127,6 +132,7 @@