fix(admin): configure base path for /admin/ deployment
- Add base: '/admin/' to vite.config.ts for proper asset paths - Replace vite.svg favicon with inline SVG emoji icon - Fixes 404 errors when accessing admin panel at /admin/ path Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5ff53b8ba7
commit
cb0b8c6ea9
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🏢</text></svg>" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>iConsulting 管理后台</title>
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react';
|
|||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: '/admin/',
|
||||
server: {
|
||||
port: 5174,
|
||||
proxy: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue