Commit 633b179f authored by 黄媛媛's avatar 黄媛媛

修改头像

parent c15772ad
......@@ -53,6 +53,7 @@
name: '',
data() {
return {
updateInfo:true,
fontPub: "iconfont",
idonfontList: ['icon-zichanguanli', 'icon-shu', 'icon-xitong', 'icon-shenpi', 'icon-shuju'],
defaulActive: '0',
......@@ -95,6 +96,10 @@
},
},
methods: {
changeImg(){
let scmAccount = this.getLocalStorage();
this.scmAccount = scmAccount;
},
LoginOut() {
localStorage.removeItem("scmAccount");
location.href = '/'
......
......@@ -22,7 +22,7 @@
<template>
<div class="App">
<div class="nav">
<Nav></Nav>
<Nav ref="Nav"></Nav>
</div>
<div class="appContent">
<div class="routerContent">
......@@ -131,6 +131,9 @@
if (response.data.resultCode == 1) {
this.scmAccount.HeadImg=this.imgMsg.HeadImg;
this.Success(response.data.message);
var userJson = JSON.stringify(this.scmAccount);
localStorage.scmAccount = userJson;
this.$refs.Nav.changeImg()
} else {
this.Error(response.data.message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment