|
@@ -83,8 +83,12 @@ import OrdinaryModel from "./login_manage/OrdinaryModel.vue";
|
|
|
export default {
|
|
|
components: { OrdinaryModel, ForgetPassModel },
|
|
|
beforeRouteEnter(to, from, next){
|
|
|
- window.location.href = location.origin+'/home/'
|
|
|
- return
|
|
|
+ if(to.query.HZ == 1){
|
|
|
+ next();
|
|
|
+ }else{
|
|
|
+ window.location.href = location.origin+'/home/'
|
|
|
+ return
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
lang() {
|
|
@@ -212,12 +216,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- // this.keyupSubmit(); //回车登录
|
|
|
- // this.getPhoneCode();//获取手机号区号
|
|
|
- // this.getRecordInfo();//获取备案信息
|
|
|
+ this.keyupSubmit(); //回车登录
|
|
|
+ this.getPhoneCode();//获取手机号区号
|
|
|
+ this.getRecordInfo();//获取备案信息
|
|
|
},
|
|
|
mounted(){
|
|
|
- // this.getRememberedInfo()
|
|
|
+ this.getRememberedInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
keyupSubmit() {
|
|
@@ -496,7 +500,6 @@ export default {
|
|
|
localStorage.setItem("AdminId", res.Data.AdminId);
|
|
|
localStorage.setItem("AdminName", res.Data.AdminName);
|
|
|
localStorage.setItem("loginTime",new Date())
|
|
|
- storage.setCookie('ai_user',res.Data.AdminName)
|
|
|
|
|
|
},
|
|
|
//根据角色判断应该进入系统的哪个页面,进入系统
|