This commit is contained in:
2026-06-18 16:47:37 +08:00
parent cffebebf19
commit 74c251f10d
3 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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));