Vue3 --- 部署

1. history 工作模式路由配置

nginx.conf


server {
    listen        80;
    server_name   localhost;
    root          /root/gshop;

    location / {
        root      /root/gshop;
        index     inde.html;
        try_files $uri #uri/ /index.html;    # 处理 history 工作模式刷新页面报 404 的错误
    }

{

posted @ 2024-08-13 15:42  河图s  阅读(28)  评论(0)    收藏  举报