1.0.3 • Published 4 years ago

egg-vue-yiren-tool v1.0.3

Weekly downloads
93
License
MIT
Repository
github
Last release
4 years ago

egg-yiren-tool

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-yiren-tool --save

Usage

// {app_root}/config/plugin.js
exports.yirenTool = {
  enable: true,
  package: 'egg-yiren-tool',
};

Example

  • 把 demo 中 general.js 文件加入到app/controller/admin/文件夹中
  • 把 demo 中 general.html 文件加入到app/view/文件夹中
  • 在 app/route.js 中,增加路由
  app.router.get('/admin/general/', 'admin.general.index');
  app.router.get('/admin/general/general', 'admin.general.generalFile');

Questions & Suggestions

注意:仅内部使用,不要外传

License

MIT