1
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -28,7 +28,7 @@
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script type="module" crossorigin src="/assets/index-CeOAp-xS.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-D3ycepPx.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-D7ShJUt4.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -134,8 +134,8 @@ const AdminSettings: React.FC = () => {
|
||||
|
||||
const LogoUploadField: React.FC<{ config: SystemConfig }> = ({ config }) => {
|
||||
const hasLogo = config.value && config.value.startsWith('/uploads/');
|
||||
const baseUrl = (import.meta as any).env?.VITE_API_URL || 'http://localhost:8000/api';
|
||||
const logoUrl = hasLogo ? `${baseUrl.replace('/api', '')}${config.value}` : '';
|
||||
const baseUrl = import.meta.env.VITE_API_BASE || 'http://localhost:8000';
|
||||
const logoUrl = hasLogo ? `${baseUrl}${config.value}` : '';
|
||||
|
||||
const handleRemove = () => {
|
||||
setConfigs(prev => prev.map(c => c.key === 'site_logo' ? { ...c, value: '' } : c));
|
||||
|
||||
Reference in New Issue
Block a user