个人中心和修改密码跳转

1.0.0
黄崇栋 6 years ago
parent 14ef76d640
commit 0f1afeb419

@ -19,7 +19,7 @@
</div>
<a-row>
<a-col span="24" align="center">
<a-button class="mt16">修改密码</a-button>
<a-button class="mt16" @click="editPwd"></a-button>
</a-col>
</a-row>
</div>
@ -32,6 +32,25 @@ export default {
return {
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>

Loading…
Cancel
Save