From 77c9fb958ec4b7ecd1147c9aceac1067159e73f4 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 11 Mar 2022 15:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E4=B8=8B=E8=BD=BD=E8=B5=84?= =?UTF-8?q?=E6=BA=90=EF=BC=8C=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90=EF=BC=88?= =?UTF-8?q?=E6=9C=AA=E5=AE=8C=E6=88=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.vue | 3 +- src/components/Sidebar.vue | 39 +- src/config/index.js | 67 ---- src/libs/auth/generateBtnPermission.js | 21 + src/libs/bus.js | 6 + src/libs/random_str.js | 10 + src/libs/route/addRoutes.js | 32 ++ src/libs/route/generateRoutes.js | 26 ++ src/libs/route/resetRouter.js | 6 + src/libs/util.cookies.js | 43 +++ src/libs/util.db.js | 83 ++++ src/libs/util.js | 136 +++++++ src/main.js | 5 +- src/router/index.js | 2 +- src/setting.js | 15 +- src/store/index.js | 9 +- src/utils/api.js | 360 +++++++++--------- src/utils/core.js | 22 +- src/utils/http.js | 12 +- .../{courseconfig.vue => contentSettings.vue} | 28 ++ src/views/customer/customer.vue | 3 +- src/views/serve/backstage/model.vue | 29 +- src/views/system/addLog.vue | 1 - src/views/system/manageLog.vue | 72 +++- src/views/system/role.vue | 2 +- src/views/user/User.vue | 7 +- 26 files changed, 727 insertions(+), 312 deletions(-) delete mode 100644 src/config/index.js create mode 100644 src/libs/auth/generateBtnPermission.js create mode 100644 src/libs/bus.js create mode 100644 src/libs/random_str.js create mode 100644 src/libs/route/addRoutes.js create mode 100644 src/libs/route/generateRoutes.js create mode 100644 src/libs/route/resetRouter.js create mode 100644 src/libs/util.cookies.js create mode 100644 src/libs/util.db.js create mode 100644 src/libs/util.js rename src/views/course/{courseconfig.vue => contentSettings.vue} (96%) diff --git a/src/components/Header.vue b/src/components/Header.vue index 4977b33..e3b6d1c 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -40,9 +40,8 @@ export default { }, loginout() { localStorage.removeItem('ms_username'); - this.$router.push('/login'); sessionStorage.clear() - + location.reload() }, goHome(){ this.$router.push('/customer') diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 91385a6..07b9de7 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -11,7 +11,7 @@ router @select="handleSelect" > -