refactor(frontend): merge authserver web login
This commit is contained in:
@@ -52,13 +52,15 @@ interface Column {
|
||||
class?: string
|
||||
}
|
||||
|
||||
defineProps<{
|
||||
withDefaults(defineProps<{
|
||||
title: string
|
||||
columns: Column[]
|
||||
data: any[]
|
||||
total: number
|
||||
pageSize?: number
|
||||
}>()
|
||||
}>(), {
|
||||
pageSize: 10,
|
||||
})
|
||||
|
||||
const statusMap: Record<string, string> = {
|
||||
success: '成功',
|
||||
|
||||
@@ -64,7 +64,7 @@ const description = computed(() => {
|
||||
const handleClick = async () => {
|
||||
if (props.system.sso_enabled) {
|
||||
const { data } = await subsystemApi.getSSOUrl(props.system.id)
|
||||
window.open(data.sso_url, '_blank')
|
||||
window.location.assign(data.sso_url)
|
||||
} else {
|
||||
window.open(props.system.url, '_blank')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user