Setting reverse proxy failure API error 404 after vue is packaged

problem description

in the following figure, the path is to find an interface on a music website. The target in proxtable in the development environment can also request data from this address.

the environmental background of the problems and what methods you have tried

I have seen similar problems on sf. Try to change the location of api and / and end up with api/getdisclist in front of api
api with a slash /
, but it still fails

related codes

/ / Please paste the code text below (do not replace the code with pictures)

    location /api/getDiscList {            
            proxy_pass https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg/;            
        }

    location / {
        root   /dist/index.html-sharp/test/order;
        index  /dist/index.html-sharp/test/order;
    }
     

what result do you expect? What is the error message actually seen?

I have been grateful for the help of all the great gods for a few hours.

Mar.06,2022
Menu