|
|
|
@ -19,7 +19,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col span="24" align="center">
|
|
|
|
<a-col span="24" align="center">
|
|
|
|
<a-button class="mt16">修改密码</a-button>
|
|
|
|
<a-button class="mt16" @click="editPwd">修改密码</a-button>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -32,6 +32,25 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
userInfo: {}
|
|
|
|
userInfo: {}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
editPwd() {
|
|
|
|
|
|
|
|
localStorage.clear();
|
|
|
|
|
|
|
|
sessionStorage.clear();
|
|
|
|
|
|
|
|
this.$axios({
|
|
|
|
|
|
|
|
url: "/app/userCenter",
|
|
|
|
|
|
|
|
method: "GET"
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
// res.url = "http://localhost:8080";
|
|
|
|
|
|
|
|
window.open(
|
|
|
|
|
|
|
|
res.url + "?redirect=" + location.origin + "#/center",
|
|
|
|
|
|
|
|
"_self"
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
this.userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|