feat: There is no way the, AWC

This commit is contained in:
super_liu
2022-04-26 16:18:09 +08:00
parent f44971e3d9
commit d5cf534c9e
6 changed files with 58 additions and 25 deletions
@@ -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>
+2 -10
View File
@@ -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()
}
}
+1 -9
View File
@@ -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