This commit is contained in:
super_liu
2021-12-31 09:45:15 +08:00
parent 9ccb0a6635
commit 7e27310dd5
3 changed files with 11 additions and 6 deletions
+5 -4
View File
@@ -8,7 +8,7 @@
import axios from 'axios'
import util from 'util'
import { get_verify_by_instance,loginIdm,getMenu } from 'api/process'
import { ssoLoginUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
import { ssoLoginUrlDev,ssoLogoutUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
export default {
name: 'LoginVerify',
@@ -135,9 +135,10 @@
if (res.ok) {
this.loginNew(res)
} else {
// this.$message.warning('系统无权限访问')
// window.location.href = 'http://sso.foton.com.cn/logout?service='
window.location.href = ssoLoginUrlDev
this.$message.warning('系统无权限访问')
this.$store.dispatch('logout')
// window.location.href = 'http://sso.foton.com.cn/logout?service='
window.location.href = ssoLogoutUrlDev
}
})