# Vue-Template2.0(Vue-Cli2.0 ElementUI) **Repository Path**: Advictoramn1/vue_template ## Basic Information - **Project Name**: Vue-Template2.0(Vue-Cli2.0 ElementUI) - **Description**: 基于Vue-Cli2.0制作,该模板集成了Element-UI库,Vue-i18n国际化,Vuex、Mixin混入等常用插件及组件, 并且对Axios拦截器进行了封装,以及对请求的API接口进行模块化处理,方便多人协同开发。 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-03-04 - **Last Updated**: 2021-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 目录结构vue-template2.0 基于vue-cli2.0制作,该模板集成了elementUI库,vue-i8n国际化,vuex库等常用插件及组件, 并且对axios拦截器进行了封装,以及对请求的api接口进行模块化处理,方便多人协同开发。 本模板采用eslint,建议严格按照eslint规范书写代码。 ## 打包 npm run build 本模板使用gulp进行代码压缩以及打包处理,避免缓存,同时给文件夹加上时间戳,方便区分前后版本 本模板使用的gulp版本为3.0+,不兼容4.0+(该模板默认为3.0+) ## 目录结构 ```bash ├── build // 构建相关 ├── config // 构建配置相关 ├── dist // 构建打包生成部署文件 │ ├── 2004031021 // 静态资源(20年04月03日10时21分) │ ├── config // 配置 │ ├── index.html // index.html入口 ├── src // 源代码 │ ├── api // 封装拦截器以及api接口 ├── modules // api接口 ├── base.js // 服务器地址 ├── http.js // 拦截器 ├── index.js // 导出modules │ ├── assets // 静态资源 │ ├── components // 全局公用组件 │ ├── element-ui-theme // element-ui组件主题色配置 │ ├── icons // 所有 svg icons │ ├── lang // vue-i18n国际化 │ ├── router // 路由 │ ├── store // 全局 store管理 │ ├── utils // 全局公用方法 │ ├── views // view │ ├── App.vue // 入口组件 │ ├── main.js // 入口 ├── static // 第三方不打包资源 │ ├── config // 全局变量配置 │ ├── img // favicon图标 │ ├── plugins // 插件 ├── .babelrc // babel-loader 配置 ├── eslintrc.js // eslint 配置项 ├── .gitignore // git 忽略项 ├── gulpfile.js // gulp配置 ├── index.html // html模板 └── package.json // package.json ``` ## 快速删除node_modules 全局安装rimraf npm install rimraf -g 根目录执行命令行 rimraf node_modules