feat: enhance Druid integration and improve user management features
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user