|
|
@@ -132,7 +132,15 @@ export default {
|
|
|
this.$api.login(parms).then((res)=>{
|
|
|
let data=res.data
|
|
|
if(res.data.code == 0){
|
|
|
- window.location.hash='/';
|
|
|
+ if(data.data.utype == 0){
|
|
|
+ window.location.hash='/';
|
|
|
+ }
|
|
|
+ if(data.data.utype == 1){
|
|
|
+ window.location.hash='/govermentData';
|
|
|
+ }
|
|
|
+ if(data.data.utype == 2){
|
|
|
+ window.location.hash='/companyData';
|
|
|
+ }
|
|
|
localStorage.setItem('token',res.data.data.token);
|
|
|
}else{
|
|
|
this.$message.error("账号或者密码有误");
|