diff --git a/src/App.vue b/src/App.vue index 1e1aeb0..85a7a5a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,12 +10,10 @@ export default { name: 'App', created () { - //在页面加载时读取sessionStorage里的状态信息 if (util.session.get(Setting.storeKey) ) { this.$store.replaceState(Object.assign({}, this.$store.state,JSON.parse(util.session.get(Setting.storeKey)))) } - //在页面刷新时将vuex里的信息保存到sessionStorage里 window.addEventListener("beforeunload",()=>{ util.session.get(Setting.usernameKey) && util.session.set(Setting.storeKey,JSON.stringify(this.$store.state)) }) diff --git a/src/api/index.js b/src/api/index.js index 7338c99..e8a524a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,14 +1,25 @@ +import Setting from '@/setting' +let uploadURL = Setting.apiUploadURL + export default { - logins: `management/userInfo/login`, //登录  + // 登录  + logins: `management/userInfo/login`, + + // oss文件管理 + fileDeletion: `${uploadURL}/oss/manage/fileDeletion`, + fileupload: `${uploadURL}/oss/manage/fileupload`, + getPlayAuth: `${uploadURL}/oss/manage/getPlayAuth`, + removeMoreVideo: `${uploadURL}/oss/manage/removeMoreVideo`, + removeVideo: `${uploadURL}/oss/manage/removeVideo`, // 查询省份城市 queryCity: `cjEnterprise/city/queryCity`, queryProvince: `cjEnterprise/province/queryProvince`, // 个人中心 - userinfoUpdate:`management/userInfo/update`,//个人中心信息修改 - userinfo:`management/userInfo/getUserInfo`,//个人中心信息展示 - getAccount:`management/userInfo/getAccount`,//账号判重 + userinfoUpdate:`management/userInfo/update`, + userinfo:`management/userInfo/getUserInfo`, + getAccount:`management/userInfo/getAccount`, // 组织架构 addStaffPro: `management/staffProfessionalArchitecture/addStaffProfessionalArchitecture`, @@ -63,9 +74,6 @@ export default { exportFailureUser: `cjEnterprise/user/exportFailure`, downloadUserTemp: 'http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658619702.xlsx', - fileupload: `oss/manage/fileupload`, - fileDeletion: `oss/manage/fileDeletion`, //批量删除文件 - // 题库分类 AddOneLevel:`cjEnterprise/questionBank/AddOneLevel`, AddSecondLevel:`cjEnterprise/questionBank/AddSecondLevel`, diff --git a/src/assets/img/login_bg.png b/src/assets/img/login_bg.png index 03e46b2..72ea233 100644 Binary files a/src/assets/img/login_bg.png and b/src/assets/img/login_bg.png differ diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index c1dd7f6..4505aac 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -10,48 +10,45 @@ {{userName}} - - 退出 + + 退出