更换 vue-router 的另一个模式 history
new Router({
mode: 'history'
})
前端修改的同时后端也要配置
nginx中
location / {
try_files $uri $uri/ /index.html;
}
更换 vue-router 的另一个模式 history
new Router({
mode: 'history'
})
前端修改的同时后端也要配置
nginx中
location / {
try_files $uri $uri/ /index.html;
}