|
@@ -116,7 +116,6 @@
|
|
|
for(var i in res.data.functions) {
|
|
|
str += res.data.functions[i].code + ",";
|
|
|
}
|
|
|
- this.$store.dispatch('getRole',res.data);
|
|
|
sessionStorage.setItem('power',str)
|
|
|
sessionStorage.setItem('assetsTab',-1)
|
|
|
this.$router.push({ path: '/assets' });
|
|
@@ -251,6 +250,20 @@
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ var url = location.hash;
|
|
|
+ var theRequest = new Object();
|
|
|
+ if (url.indexOf("?") != -1) {
|
|
|
+ var str = url.split("?")[1].substr(1);
|
|
|
+ var strs = str.split("&");
|
|
|
+ for(var i = 0; i < strs.length; i ++) {
|
|
|
+ theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
|
|
|
+ }
|
|
|
+ this.ruleForm.loginName = theRequest.sername;
|
|
|
+ this.ruleForm.password = theRequest.password;
|
|
|
+ this.handleLogin();
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|