# template-vue **Repository Path**: baseBoy/template-vue ## Basic Information - **Project Name**: template-vue - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-01 - **Last Updated**: 2021-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-template ## 框架使用步骤 ### 项目环境安装 ``` npm install ``` ### 运行项目(开发环境) ``` npm run dev 开发环境 npm run pro 生产环境 npm run test1 测试环境 ``` ### 项目打包 ``` npm run bd -- 打包开发环境 ``` ``` npm run bt -- 打包测试环境 ``` ``` npm run dp -- 打包生产环境 ``` ## 模板项目目录介绍 ### public 重点注意 index.html文件,在此文件中可通过CDN方式引入js文件,一般情况下该文件夹文件不做修改。 ### src 包含项目所需的 .js、.css 、.vue、图片、工具函数等文件夹或文件 #### src >>> api 文件夹下js文件为项目不同模块所需请求接口方法集合:实例及解释如下 ``` export const getListAPI = params => { return http.post(url, params,type) }; ``` getListAPI:请求接口方法,需在使用的vue文件中进行引入 url :接口路径 params:接口请求参数合集 type:设置请求的content-type 0.application/x-www-form-urlencoded 1. application/json 2. form Data ### Customize configuration