Watch 1 Star 2 Fork 0

C_dinghai / ScheduleUI_demoHTML/CSS

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
排课系统前端 spread retract

Clone or download
C_dinghai authored UI
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

构建

确保本地安装了NodeJS

安装依赖

npm install

启动项目

# 服务热部署在 localhost:8010
# 控制台执行命令
npm run dev

由于我在前端项目中已经配置了端口转发,将数据转发到后端上,因此项目启动之后,在浏览器中输入 http://localhost:8010 就可以访问该前端项目,所有的请求通过端口转发将数据传到后端控制器中(注意不要关闭后端服务)。如果后端项目运行端口不为8080,请在前端项目的webpack.config.js文件中修改请求转发地址。 考虑到对于网络请求以及对请求后获取的请求状态判断都使用重复的代码,所以对网络请求以及状态返回判断进行封装,做成插件方便项目使用,封装文件为api.js

项目打包

# 控制台执行命令
npm run build

Comments ( 0 )

Sign in for post a comment

HTML/CSS
1
https://gitee.com/C_dinghai/ScheduleUI_demo.git
git@gitee.com:C_dinghai/ScheduleUI_demo.git
C_dinghai
ScheduleUI_demo
ScheduleUI_demo
1.0

Help Search

205735 778617b6 1899542 205747 347fc4a1 1899542