diff --git a/soul-admin/.env.development b/soul-admin/.env.development index d75aede3..610a77c7 100644 --- a/soul-admin/.env.development +++ b/soul-admin/.env.development @@ -1,6 +1,6 @@ # 对接后端 base URL(不改 API 路径,仅改此处即可切换 Next → Gin) # 宝塔部署:若 API 站点开启了强制 HTTPS,这里必须用 https,否则预检请求会被重定向导致 CORS 报错 # VITE_API_BASE_URL=http://localhost:3006 -# VITE_API_BASE_URL=http://localhost:8080 -VITE_API_BASE_URL=https://soulapi.quwanzhi.com +VITE_API_BASE_URL=http://localhost:8080 +# VITE_API_BASE_URL=https://soulapi.quwanzhi.com diff --git a/soul-admin/src/components/ui/switch.tsx b/soul-admin/src/components/ui/switch.tsx index 9eaca406..ec236353 100644 --- a/soul-admin/src/components/ui/switch.tsx +++ b/soul-admin/src/components/ui/switch.tsx @@ -8,7 +8,7 @@ const Switch = React.forwardRef< >(({ className, ...props }, ref) => (