vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

How can I process proxy onError manually? #7456

Open Cinux-Chosan opened 6 months ago

Cinux-Chosan commented 6 months ago

https://github.com/vuejs/vue-cli/blob/f0f254e4bc81ed322eeb9f7de346e987e845068e/packages/%40vue/cli-service/lib/util/prepareProxy.js#L100

I indeed require a custom response when encountering a proxy error.

Cinux-Chosan commented 6 months ago

From the code perspective, it is hardcoded to only use the default console prompts provided by Vue CLI and does not support custom error handling logic.