소스 검색

localstorage添加头像地址

qinzhipeng_v 5 년 전
부모
커밋
0ba7ca01ba
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/layout/components/Navbar.vue

+ 1 - 0
src/layout/components/Navbar.vue

@@ -125,6 +125,7 @@ export default {
     get_bizArr() {
       memberGetLoginInMemberInfoByLdap().then(res => {
         this.options = res.data
+        localStorage.setItem('UserAvatar', this.options.phoneUrl)
       })
       settingGetBizList({}).then(res => {
         this.sumTypeArray = res.data