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