Parcourir la source

localstorage添加头像地址

qinzhipeng_v il y a 5 ans
Parent
commit
0ba7ca01ba
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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