diff --git a/src/api/index.js b/src/api/index.js index c09db6c..458ce35 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -12,6 +12,7 @@ export default { getToken: `users/users/user/getToken`, getOtherAccountByPhone: `users/users/user/getOtherAccountByPhone`, unbindAccounts: `users/users/user/unbindAccounts`, + getUserRolesPermissionMenu: `${host}users/users/user-role/getUserRolesPermissionMenu`, platformLogList: `nakadai/nakadai/log/platformLogList`, logNotification: `nakadai/nakadai/log/logNotification`, diff --git a/src/assets/img/exts/pdf.png b/src/assets/img/exts/pdf.png new file mode 100644 index 0000000..39e05f1 Binary files /dev/null and b/src/assets/img/exts/pdf.png differ diff --git a/src/assets/img/exts/pic.png b/src/assets/img/exts/pic.png new file mode 100644 index 0000000..6f63244 Binary files /dev/null and b/src/assets/img/exts/pic.png differ diff --git a/src/assets/img/exts/txt.png b/src/assets/img/exts/txt.png new file mode 100644 index 0000000..bb1276a Binary files /dev/null and b/src/assets/img/exts/txt.png differ diff --git a/src/assets/img/exts/word.png b/src/assets/img/exts/word.png new file mode 100644 index 0000000..aeb4ddc Binary files /dev/null and b/src/assets/img/exts/word.png differ diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 0731ba2..0d3a74b 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -10,16 +10,16 @@
- -
+

@@ -53,7 +53,12 @@

- + + + + + + {{ section.name }}

@@ -238,6 +243,7 @@ export default { this.coverUrl = row.fileUrl; } else if (row.fileType == "pdf") { this.pdfSrc = row.fileUrl; + console.log("🚀 ~ file: index.vue ~ line 246 ~ preview ~ this.pdfSrc", this.pdfSrc) this.pdfVisible = true; } else { this.$get(`${this.api.curriculumGetSubsection}/${row.id}`).then(res => { diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5549770..7fccdb9 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -79,10 +79,15 @@ export default { }, logout({ commit, state, dispatch }) { return new Promise((resolve, reject) => { - util.local.remove(Setting.storeKey); - util.local.remove(Setting.tokenKey); - location.reload(); - resolve(); + if (util.local.get(Setting.storeKey)) { + util.local.remove(Setting.storeKey) + util.local.remove(Setting.tokenKey) + } else { + util.local.remove('oc_server_token') + util.local.remove('oc_server_store') + } + location.reload() + resolve() }); }, setInfo({ state, commit }, info) {