Commit c5d71c14 authored by 罗超's avatar 罗超

no message

parent adcbefb0
......@@ -7,6 +7,9 @@
export default {
data() {
return {};
},
ceated() {
},
mounted() {
let getData
......@@ -31,8 +34,39 @@ export default {
name: "Home",
});
}
this.getUserInfo()
},
methods: {
// 获取用户权限信息
getUserInfo(){
this.apipost("/api/AutoLogin/GetCRMLoginMenu", {}, (res) => {
var jsonData = res.data;
if (jsonData.resultCode == 1) {
//登录成功
let autoLogin = this.isAutoLogin ?
{
acc: this.account,
pwd: this.pwd,
} :
null;
localStorage.autoLogin = JSON.stringify(autoLogin);
var userData = jsonData.data;
var userJson = JSON.stringify(userData);
localStorage.userInfo = userJson;
this.loginState = 0;
this.$router.push({
path: "/Home"
});
} else {
this.$message({
message: res.data.message,
type: "error",
});
this.loginState = 0;
}
});
}
},
methods: {},
};
</script>
......
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