feat: enhance Druid integration and improve user management features

This commit is contained in:
2026-07-16 09:59:27 +08:00
parent 2e88885a27
commit f9f5ceac9d
10 changed files with 253 additions and 72 deletions

View File

@@ -1,4 +1,5 @@
import React, { useEffect } from 'react';
import { getProductionApiBaseUrl } from '@/utils/publicUrl';
/**
*
@@ -7,6 +8,11 @@ import React, { useEffect } from 'react';
* */
const CacheInfo: React.FC = () => {
const swaggerUrl =
process.env.NODE_ENV === 'development'
? '/api/swagger-ui/index.html'
: `${getProductionApiBaseUrl()}swagger-ui/index.html`;
useEffect(() => {
const frame = document.getElementById('bdIframe');
if (frame) {
@@ -21,7 +27,7 @@ const CacheInfo: React.FC = () => {
<div style={{}}>
<iframe
style={{ width: '100%', border: '0px', height: '100%' }}
src={process.env.NODE_ENV === 'development' ? '/api/swagger-ui/index.html' : '/api/ks/swagger-ui/index.html'}
src={swaggerUrl}
id="bdIframe"
/>
</div>