vuedwtrees

0.1.8 • Public • Published

目录结构

|-- src                              // 源码目录
|   |-- api                          // Api接口
|       |-- index.js           	     // api模块的主文件,在main.js挂载全部api到vue
|       |-- xxxx.js           	     // 添加自己的api
|   |-- assets                       // 静态资源,你的style、图片、字体等。
|       |-- css                      // 样式
|       |-- fonts                    // 字体
|       |-- img                      // 图片
|   |-- components                   // 全局组件,其他页面组件请归类到所在目录
|       |-- Helloworld               // 公共组件
|       |-- ……
|   |-- config                       // 应用的配置文件
|       |-- url.js                   // Dev的url和Pro的url
|       |-- app.js                   // 应用的配置,比如版本、性别对应的key、应用的名字、文章的状态等,可以具体到某个页面的配置,统一管理。
|       |-- index.js                 // 配置模块的主文件,在main.js挂载全部配置到vue原型上,Vue.prototype.$Config = Config
|       |-- xxx.js                   // 其他配置文件,建议分类清楚,如post.js用于文章相关配置
|   |-- mockjs                       // mock 静态数据
|   |-- router                       // 这里使用的是f7自带的router
|   |-- store                        // vuex,数据仓库,model之类的
|   |-- utils
|   |-- views                        // 页面视图。里面文件夹建议使用大驼峰
|       |-- Login                    // 登录
|       |-- Home                     // 主页
|       |-- xxxx                     // 等等
|   |-- App.vue                      // 页面入口文件
|   |-- main.js                      // 程序入口文件,加载各种公共组件
|-- .gitignore                       // 忽略的文件
|-- vue.config.js                    // 配置文件
|-- package.json                     // 项目及工具的依赖配置文件
|-- README.md                        // 说明




## Project setup

npm install


### Compiles and hot-reloads for development

npm run serve


### Compiles and minifies for production

npm run build


### Run your tests

npm run test


### Lints and fixes files

npm run lint


Readme

Keywords

none

Package Sidebar

Install

npm i vuedwtrees

Weekly Downloads

9

Version

0.1.8

License

none

Unpacked Size

670 kB

Total Files

44

Last publish

Collaborators

  • gxy8023