diff --git a/_compose/caddy/conf/Caddyfile b/_compose/caddy/conf/Caddyfile index c66e889..2df4ee6 100644 --- a/_compose/caddy/conf/Caddyfile +++ b/_compose/caddy/conf/Caddyfile @@ -1,5 +1,7 @@ :8300, localhost { root * /data/dist + # Vue Router history模式,避免刷新后404页面;字符中间不可有空格 + try_files {path} /index.html handle_path /stage-api/* { uri strip_prefix /stage-api