From ea6c9f45fde4b9320eaa2ee63ffeb527b89faa7e Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Wed, 9 Dec 2020 16:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E9=81=AE=E7=BD=A9=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=94=B9title=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/permission.js | 3 +++ web/src/utils/page.js | 8 +++++++ web/src/view/person/person.vue | 40 ++++++++++++++++++++++++---------- 3 files changed, 40 insertions(+), 11 deletions(-) create mode 100644 web/src/utils/page.js diff --git a/web/src/permission.js b/web/src/permission.js index 48a7dc5f..a7163a9d 100644 --- a/web/src/permission.js +++ b/web/src/permission.js @@ -1,5 +1,6 @@ import router from './router' import { store } from '@/store/index' +import getPageTitle from '@/utils/page' let asyncRouterFlag = 0 @@ -8,6 +9,8 @@ const whiteList = ['login'] router.beforeEach(async(to, from, next) => { const token = store.getters['user/token'] // 在白名单中的判断情况 + //修改网页标签名称 + document.title = getPageTitle(to.meta.title) if (whiteList.indexOf(to.name) > -1) { if (token) { next({ path: '/layout/dashboard' }) diff --git a/web/src/utils/page.js b/web/src/utils/page.js new file mode 100644 index 00000000..9892714a --- /dev/null +++ b/web/src/utils/page.js @@ -0,0 +1,8 @@ +const title = 'GIN-VUE-ADMIN' + +export default function getPageTitle(pageTitle) { + if (pageTitle) { + return `${pageTitle} - ${title}` + } + return `${title}` +} \ No newline at end of file diff --git a/web/src/view/person/person.vue b/web/src/view/person/person.vue index 9be6d49d..e12527cd 100644 --- a/web/src/view/person/person.vue +++ b/web/src/view/person/person.vue @@ -4,13 +4,11 @@
- +
+ + + 重新上传 +

{{userInfo.nickName}}

这个家伙很懒,什么都没有留下

@@ -18,7 +16,7 @@
  • - 资深前端工程师 + {{userInfo.nickName}}
  • 北京反转极光科技有限公司-技术部-前端事业群 @@ -216,9 +214,6 @@ export default { box-shadow: -2px 0 20px -16px; width: 80%; height: 100%; - .user-avatar{ - cursor: pointer; - } .user-card { min-height: calc(90vh - 200px); padding: 30px 20px; @@ -282,4 +277,27 @@ export default { } } } +.user-headpic-update{ + width: 120px; + height: 120px; + line-height: 120px; + margin: 0 auto; + display: flex; + justify-content: center; + border-radius: 20px; + &:hover{ + color: #fff; + background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%), radial-gradient(at top center, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.40) 120%) #989898; + background-blend-mode: multiply,multiply; + .update{ + color:#fff ; + } + } + .update{ + height: 120px; + width: 120px; + text-align: center; + color:transparent; + } + } \ No newline at end of file