博客系统后台:当前仓库
{
"axios": "^0.18.0",
"element-ui": "^2.4.0",
"vue": "^2.5.2",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
}
# install dependencies 下载依赖
npm install
# serve with hot reload at localhost:8080 运行开发环境
npm run serve
# build for production with minification 打包
npm run build
# 自动格式化代码
npm run lint --fix
router采用的是
history
模式,所以在nginx下需要进行相关配置。
server {
listen 80;
server_name www.yanjd.top;
location /admin {
alias /var/www/html;
try_files $uri $uri/ /admin/index.html;
}
location / {
proxy_pass http://blog.api.junn.top;
}
}