diff --git a/frontend/.env.development b/frontend/.env.development index a3457b5..3fd5c3b 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,3 +1,3 @@ # 开发环境 VITE_API_BASE_URL=/api -VITE_AI_POST_MESSAGE_URL=://localhost:3001/ +VITE_AI_POST_MESSAGE_URL=http://localhost:3001 diff --git a/frontend/.env.production b/frontend/.env.production index deef555..f32edc7 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -2,5 +2,5 @@ VITE_API_BASE_URL=/api # 如果后端部署在不同域名,可以改成完整地址: # VITE_API_BASE_URL=https://api.your-domain.com -VITE_AI_POST_MESSAGE_URL=://localhost:3001 +VITE_AI_POST_MESSAGE_URL=http://localhost:3001 diff --git a/frontend/src/views/public/create/Index.vue b/frontend/src/views/public/create/Index.vue index ca84041..502eb6a 100644 --- a/frontend/src/views/public/create/Index.vue +++ b/frontend/src/views/public/create/Index.vue @@ -10,14 +10,8 @@ -