nuxt / nuxt

The Intuitive Vue Framework.

Home Page:https://nuxt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

createError will be requested twice in the get request

feiren200 opened this issue · comments

Environment

  • Operating System: Darwin
  • Node Version: v18.19.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.0.6
  • Builder: -
  • User Config: devtools, modules, css
  • Runtime Modules: @element-plus/nuxt@1.0.9, @pinia/nuxt@0.5.1, @nuxt/eslint@0.3.10
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-vqg5xh-yx2rqg?file=app.vue

Describe the bug

In a GET request, if there is a createError, the request will be executed one more time. But not in POST, PUT, DELETE requests
Please open the console to view the request

Additional context

No response

Logs

No response