Skip to content

Latest commit

 

History

History

README.md

Env and dependencies

Note: Yarn package management is recommended, the exact same version loaded with the demo site of this project (yarn.lock) . but you can also use npm

Project setup

  • Clone repo
git clone https://github.com/vueComponent/ant-design-vue-pro.git
cd ant-design-vue-pro
  • Install dependencies
yarn install
  • Compiles and hot-reloads for development
yarn run serve
  • Compiles and minifies for production
yarn run build
  • Lints and fixes files
yarn run lint

Other

  • IMPORTANT : About Issue feedback !! when opening Issue read Issue / PR Contributing

  • Vue-cli3 used by the project.

  • Disable Eslint (not recommended): remove eslintConfig field in package.json and vue.config.js field lintOnSave: false

  • Load on Demand /src/main.js L14, in import './core/lazy_use', import './core/use''. more load-on-demand.md

  • Customize Theme: Custom Theme Config (@kokoroli)

  • I18n: locales (@musnow)

  • Production env mock is disabled. use src/mock/index.js

  • pls use release version

添加新的api地址要修改的问题

  • src/api 目录增加文件, 注意要export
  • src/store/modules 目录增加文件
  • src/store/index.js import新增的内容

使用时:

import { mapActions } from 'vuex'

...mapActions(['CostCategories', 'CreateCost', 'UpdateCost']),  # methods第一条

const { form: { validateFields }, UpdateCost, CreateCost } = this # 执行的方法中

资料