告警判断
This commit is contained in:
parent
564a26e330
commit
bd578c29bd
|
|
@ -48,15 +48,15 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
// console.log(this.$route.query.formLogin)
|
||||
if(this.$route.query.formLogin=='true'){
|
||||
// if(this.$route.query.formLogin=='true'||this.$route.query.formLogin){
|
||||
this.checkAlarm()
|
||||
}
|
||||
// }
|
||||
|
||||
},
|
||||
methods: {
|
||||
checkAlarm(){
|
||||
let nickName = sessionStorage.getItem('nickName')
|
||||
// console.log(nickName)
|
||||
console.log(nickName)
|
||||
if(nickName=='sjry'){
|
||||
logWarn().then((response) => {
|
||||
if(response.code==200){
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ export default {
|
|||
}
|
||||
return {
|
||||
loginForm: {
|
||||
username: 'guest',
|
||||
password: 'admin@123'
|
||||
username: '',
|
||||
password: ''
|
||||
},
|
||||
loginRules: {
|
||||
username: [{ required: true,message:"请输入用户名", trigger: 'blur', }],
|
||||
|
|
|
|||
Loading…
Reference in New Issue