feat: There is no way the, AWC
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapMutations, mapActions } from 'vuex'
|
||||
import { checkPage } from '@/api/login'
|
||||
import { get_verify_by_instance,loginIdm,getMenu } from 'api/process'
|
||||
import { ssoLoginUrlDev,ssoLogoutUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
|
||||
|
||||
export default {
|
||||
name: 'error',
|
||||
data () {
|
||||
return {
|
||||
username: this.$store.state.laws_urm || '', // 用户名
|
||||
password: this.$store.state.laws_prm || '', // 密码
|
||||
loading: false,
|
||||
isRemember: false, // 记住密码
|
||||
showIETips: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
logout(){
|
||||
this.$store.dispatch('logout')
|
||||
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'warning',
|
||||
showClose: false,
|
||||
showCancelButton: false,
|
||||
}).then(() => {
|
||||
window.location.href = ssoLogoutUrlDev
|
||||
})
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
mounted () {
|
||||
this.logout()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -22,15 +22,7 @@
|
||||
},
|
||||
methods: {
|
||||
logout(){
|
||||
this.$store.dispatch('logout')
|
||||
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'warning',
|
||||
showClose: false,
|
||||
showCancelButton: false,
|
||||
}).then(() => {
|
||||
window.location.href = ssoLogoutUrlDev
|
||||
})
|
||||
this.$router.push('error')
|
||||
},
|
||||
/**
|
||||
* @description: 获取菜单logout
|
||||
@@ -166,7 +158,7 @@
|
||||
if (res.ok) {
|
||||
this.loginNew(res)
|
||||
} else {
|
||||
if(res.respCode && res.respCode === 'r0011'){
|
||||
if(res.respCode && (res.respCode === 'r0011' || res.respCode === '-1')){
|
||||
this.logout()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,15 +23,7 @@
|
||||
},
|
||||
methods: {
|
||||
logout(){
|
||||
this.$store.dispatch('logout')
|
||||
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'warning',
|
||||
showClose: false,
|
||||
showCancelButton: false,
|
||||
}).then(() => {
|
||||
window.location.href = ssoLogoutUrlDev
|
||||
})
|
||||
this.$router.push('error')
|
||||
},
|
||||
/**
|
||||
* @description: 获取菜单logout
|
||||
|
||||
Reference in New Issue
Block a user