HTML a标签链接 设置点击下载文件 react 路由 静态路由 动态路由 虚拟路由

 

<a href="http://myapp-host/DLFile/UploadFile/ip.PNG" download="http://myapp-host/DLFile/UploadFile/ip.PNG">点击下载http://myapp-host/DLFile/UploadFile/ip.PNG</a>

 

https://www.tabnine.com/code/javascript/classes/react-router/StaticRouter

<StaticRouter location={req.url}>
<App />
</StaticRouter>

server {
        listen 80 default_server;
        listen [::]:80 default_server;
		
        root /var/www/myapp/;
        location / {
        try_files $uri $uri/ /index.html;
         client_max_body_size 8M;
         client_body_buffer_size 8M;

        }
        location /gateway {
        proxy_pass http://127.0.0.1:9001/gateway;
         client_max_body_size 8M;
         client_body_buffer_size 8M;
        }

        location /DLFile {
         root  /var/www/html/;
        client_max_body_size 8M;
        client_body_buffer_size 8M;
        }

  

  {
    path: "*",
    auth: true,
    title: "myapp",
    component: lazy(() => import("@/page/commonPage/notFound")),
    showSider: false,
  },

  

 

 

posted @ 2022-06-16 17:53  papering  阅读(284)  评论(0编辑  收藏  举报