vue hisory模式 配置nginx教程
目录
配置说明
配置vue-router
const router = new VueRouter({
mode: 'history',
routes: [...]
})
配置nginx
server {
listen 80;
server_name [your domain];
root [root path];
add_header Cache-Control 'no-cache, private';
location /path {
try_files $uri $uri/ /path/index.html;
}
}