部署本地项目到 GitHub Pages
进入github创建新仓库
在本地vue项目目录下使用git clone或者其他方式与github仓库建立连接。再通过下面指令上传代码到github(打包之后的dist文件夹一并上传):
git add .
git commit -m 'init project'
git push
进入Github Setting配置Github page
浏览器访问 https://waviness.github.io/example/dist即可
使用GitHub Pages跳转至个人博客
用上面同样是方式,只上传一个index.html文件包含js:
window.location.href = 'https://blog.csdn.net/qq_21407223';