Explorar o código

localstorage添加头像地址

qinzhipeng_v %!s(int64=5) %!d(string=hai) anos
pai
achega
0ba7ca01ba
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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