yarn install
yarn serve
yarn build
yarn lint
地址:[https://www.showdoc.com.cn/jinducasey/8321036098744323] 密码:jinduVIP 登录的用户名和密码符合校验规则即可(用户名:admin,密码 1qaz!QAZ)
分数地图资源:[http://192.144.199.210:8080/editor/index.html?chart_id=7Ph0yZtNoJ1JhGDl]
1、yarn build 打包 Vue 项目 2、打开 nging.conf 文件,配置对应的信息
# nginx.conf
location / {
root C:\Users\17542\Desktop\project-v2\dist;
index index.html index.htm;
try_files $uri $uri/ @router; # 解决页面刷新404问题
}
location @router {
rewrite ^.*$ /index.html last; # Vue项目路由不是真实存在的
}
3、检查配置文件是否配置成功
nginx -t -c D:\nginx-1.16.1\conf\nginx.conf
start nginx # 运行nginx