无法设置响应。
ResponseSentError:响应已发送到浏览器并且无法更改。
¥ResponseSentError: The response has already been sent to the browser and cannot be altered.
什么地方出了错?
Section titled “什么地方出了错?”¥What went wrong?
对响应进行更改(例如设置标头、Cookie 和状态码)只能在 页面组件 中完成。
¥Making changes to the response, such as setting headers, cookies, and the status code can only be done in page components.
也可以看看:
¥See Also:
Error Reference