Conflict with nuxt routing after using nginx reverse proxy

1, cause

use nginx as a reverse proxy request http://xxx.com/pro/class-mode
is actually forwarded to the real address http://xxx.com/pro/class/model

where pro, class, and mode are all dynamic routes.

2, there is a problem

nginx forwarding is normal, but there is a problem.
because class is a dynamic route and can match the class-mode field, it is normal at the beginning. When the route is initialized, the content will change, and the content comes from the http://xxx.com/pro/class/ template.
Thank you for your answers.

Oct.22,2021
Menu