Commit c5d71c14 authored by 罗超's avatar 罗超

no message

parent adcbefb0
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
export default { export default {
data() { data() {
return {}; return {};
},
ceated() {
}, },
mounted() { mounted() {
let getData let getData
...@@ -31,8 +34,39 @@ export default { ...@@ -31,8 +34,39 @@ export default {
name: "Home", 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> </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