# 16wrmis_frontEnd **Repository Path**: GAlise/16wrmis_frontEnd ## Basic Information - **Project Name**: 16wrmis_frontEnd - **Description**: wrmis的前端仓库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-04-19 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # newwestcanteenpos > 西餐厅 POS 机 ## 安装依赖模块 ```bash # install dependencies 安装依赖 npm install # serve with hot reload at localhost:3000 # 在本地的3000端口运行 npm run dev # build for production with minification # build 在生产阶段不需要运行 npm run build # build for production and view the bundle analyzer report # build 在生产阶段不需要运行(原因同上) npm run build --report ``` ## token 验证 1. 用户登录,发送用户名、密码 2. 服务端收到后,进行验证用户名和密码 3. 验证成功后,生成一个 token 票据,并发送给客户端 4. 客户端获得 token 票据后,存储起来,等到再次请求的时候,把 token 作为参数传给服务器 5. 服务端收到到,对 token 进行验证,成功后进行业务处理,不成功则提示信息失效