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

修改头像

parent c15772ad
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
name: '', name: '',
data() { data() {
return { return {
updateInfo:true,
fontPub: "iconfont", fontPub: "iconfont",
idonfontList: ['icon-zichanguanli', 'icon-shu', 'icon-xitong', 'icon-shenpi', 'icon-shuju'], idonfontList: ['icon-zichanguanli', 'icon-shu', 'icon-xitong', 'icon-shenpi', 'icon-shuju'],
defaulActive: '0', defaulActive: '0',
...@@ -95,6 +96,10 @@ ...@@ -95,6 +96,10 @@
}, },
}, },
methods: { methods: {
changeImg(){
let scmAccount = this.getLocalStorage();
this.scmAccount = scmAccount;
},
LoginOut() { LoginOut() {
localStorage.removeItem("scmAccount"); localStorage.removeItem("scmAccount");
location.href = '/' location.href = '/'
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<template> <template>
<div class="App"> <div class="App">
<div class="nav"> <div class="nav">
<Nav></Nav> <Nav ref="Nav"></Nav>
</div> </div>
<div class="appContent"> <div class="appContent">
<div class="routerContent"> <div class="routerContent">
...@@ -131,6 +131,9 @@ ...@@ -131,6 +131,9 @@
if (response.data.resultCode == 1) { if (response.data.resultCode == 1) {
this.scmAccount.HeadImg=this.imgMsg.HeadImg; this.scmAccount.HeadImg=this.imgMsg.HeadImg;
this.Success(response.data.message); this.Success(response.data.message);
var userJson = JSON.stringify(this.scmAccount);
localStorage.scmAccount = userJson;
this.$refs.Nav.changeImg()
} else { } else {
this.Error(response.data.message); 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