登录社区云,与社区用户共同成长
邀请您加入社区
在router->index.js中mode类型默认为hash,修改为historyconst router = new vueRouter({mode: 'history',routes: [...]})nginx首页配置中添加如下代码:location / {try_files $uri $uri/ /index.html;}参考文献:http://150.158.83.118/blog
const router = new vueRouter({ mode: 'history', routes: [...] })
location / { try_files $uri $uri/ /index.html; }
文献:http://150.158.83.118/blog?blog_id=44
Vue社区为您提供最前沿的新闻资讯和知识内容
更多推荐
Mac 使用vscode 创建vue项目后修改文件提示:权限不足,以超级用户身份重试
基于nodejs+vue云计算的城乡医疗卫生服务系统[程序+论文+开题]-计算机毕业设计
ElasticSearch迁移至openGauss
扫一扫分享内容
所有评论(0)