后端是run start使用pm2挂载正常
前端本地跑,版本到今天940分的是正常的,后面的版本更新后会发生同样的问题:返回数据收到后,页面不展示的 服务器使用nginx部署后,同样的问题,接口有返回,页面无更新 这是返回的data:【{"role":"assistant","id":"chatcmpl-6yxCwpUQVHnLWCs54NzLS56n5E9wb","parentMessageId":"fc9cbcb2-fddd-4062-b1ec-d28be774bde5","text":"","detail":{"id":"chatcmpl-6yxCwpUQVHnLWCs54NzLS56n5E9wb","object":"chat.completion.chunk","created":1679985294,"model":"gpt-3.5-turbo-0301","choices":[{"delta":{"role":"assistant"},"index":0,"finish_reason":null}]}}t1h1i4s5i1s4a1s9i1l9l8y1s0plitI'm sorry, but I still don't understand what you're looking for. Can you please provide more information or clarify your question?】
这是nginx部署文件 server { listen 80; server_name localhost;
location /{
二级路由时需要使用别名alias,不用rootalias /server/chatgpt-web/dist/;
index index.html;
#若不配置try_files,刷新会404
try_files $uri $uri/ /index.html=404;
proxy_buffering off;
}
后台接口location /api/ { proxy_pass http://127.0.0.1:3002/; } }