1
This commit is contained in:
@@ -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