You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.7 KiB

  1. # qm-plus-vue-page
  2. ## Project setup
  3. ```
  4. npm install
  5. ```
  6. ### Compiles and hot-reloads for development
  7. ```
  8. npm run serve
  9. ```
  10. ### Compiles and minifies for production
  11. ```
  12. npm run build
  13. ```
  14. ### Run your tests
  15. ```
  16. npm run test
  17. ```
  18. ### Lints and fixes files
  19. ```
  20. npm run lint
  21. ```
  22. ### Customize configuration
  23. See [Configuration Reference](https://cli.vuejs.org/config/).
  24. 整理代码结构
  25. ``` lua
  26. web
  27. ├── public -- public
  28. | ├── favicon.ico -- ico
  29. | └── index.html -- index
  30. ├── src -- 源代码
  31. │ ├── api -- 所有请求
  32. │ ├── assets -- 主题 字体等静态资源
  33. | ├── components -- components组件
  34. | ├── core -- gva抽离的一些前端资源
  35. | | ├── config.js -- 配置文件
  36. | | └── element_lazy.js -- elementt按需引入文件
  37. | | └── gin-vue-admin.js -- gva前端控制库
  38. | ├── directive -- 公用方法
  39. | ├── mixins -- 公用方法
  40. | ├── router -- 路由权限
  41. | ├── store -- store
  42. | | ├── modules -- modules
  43. | | | ├── dictionary.js -- 动态路由
  44. | | | ├── router.js -- 路由
  45. | | | └── user.js -- 用户权限菜单过滤
  46. | | ├── getters.js -- getters
  47. | | └── index.js -- index
  48. | ├── styles -- css
  49. | ├── utils -- utils 组件
  50. | ├── view -- 主要view代码
  51. | | ├── about -- 关于我们
  52. | | ├── dashboard -- 面板
  53. | | ├── error -- 错误
  54. | | ├── example --上传案例
  55. | | ├── iconList -- icon列表
  56. | | ├── init -- 初始化数据
  57. | | | ├── index -- 新版本
  58. | | | ├── init -- 旧版本
  59. | | ├── layout -- layout约束页面
  60. | | | ├── aside --
  61. | | | ├── bottomInfo -- bottomInfo
  62. | | | ├── screenfull -- 全屏设置
  63. | | | ├── setting -- 系统设置
  64. | | | └── index.vue -- base 约束
  65. | | ├── login --登录
  66. | | ├── person --个人中心
  67. | | ├── superAdmin -- 超级管理员操作
  68. | | ├── system -- 系统检测页面
  69. | | ├── systemTools -- 系统配置相关页面
  70. | | └── routerHolder.vue -- page 入口页面
  71. │ ├── App.vue -- 入口页面
  72. │ ├── main.js -- 入口文件 加载组件 初始化等
  73. │ └── permission.js -- 跳转
  74. ├── build.config.js -- 环境变量build配置
  75. ├── openDocument.js -- 商用代码公司自用产品无需授权
  76. ├── .babelrc -- babel-loader 配置
  77. ├── .travis.yml -- 自动化CI配置
  78. ├── vue.config.js -- vue-cli 配置
  79. └── package.json -- package.json
  80. ```