
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
Vue - 部署到nginx
1、config/index.js 中,找到 build 里的 assetsPublicPath,确认或修改其内容为 ‘/’ ,这样生成的 index.html 中资源是从 /static/xxx 里开始找的。assetsPublicPath: '/'2、修改路由为history模式,可以去掉路由路径里的#。在 router/index.js 中 Router配置的第一行添加:mode: 'his
Windows上nginx启动报错:bind() to 0.0.0.0:80 failed
1、使用 netstat -ano|findstr "80" 查找是谁占用了端口。结果如下:TCP0.0.0.0:800.0.0.0:0LISTENING4TCP0.0.0.0:496670.0.0.0:0LISTENING3080TCP0.0.0.0:496730.0.0.0:0LISTENING
Vue - 去掉路由中的#号
vue-router默认是hash模式,在hash模式下,是会有#号在URL上,可以在路由的第一行添加 mode:history来去掉#号。const router = new Router({mode: 'history',routes: []})
到底了







