优化
This commit is contained in:
@@ -39,6 +39,7 @@ import DataTable, { type DataTableColumn } from '@/shared/components/DataTable.v
|
||||
import QueryToolbar, { type QueryField, type QueryModel } from '@/shared/components/QueryToolbar.vue'
|
||||
import { showExportTaskCreatedDialog } from '@/shared/components/exportTaskCreatedDialog'
|
||||
import { useAccessPreviewStore } from '@/core/access/accessPreview'
|
||||
import { getClientWebUrl } from '@/core/config/runtimeConfig'
|
||||
|
||||
type CustomerFilters = QueryModel & { keyword: string; status: PlatformTenantStatus | '' }
|
||||
type QualificationDraft = {
|
||||
@@ -701,7 +702,7 @@ async function submitImpersonation() {
|
||||
if (!impersonationTenant.value || impersonationSubmitting.value || !impersonationFormRef.value) return
|
||||
const valid = await impersonationFormRef.value.validate().then(() => true).catch(() => false)
|
||||
if (!valid) return
|
||||
const clientUrl = String(import.meta.env.VITE_CLIENT_WEB_URL || '').trim()
|
||||
const clientUrl = getClientWebUrl()
|
||||
if (!clientUrl) {
|
||||
impersonationError.value = getApiErrorDetails(new Error('未配置客户工作台地址'), '暂未配置客户工作台地址,无法安全跳转登录')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user