yapi/exts/yapi-plugin-statistics/client.js
2017-10-27 12:13:59 +08:00

23 lines
469 B
JavaScript

/**
* Created by gxl.gao on 2017/10/24.
*/
import StatisticsPage from './statisticsClientPage/index'
module.exports = function () {
this.bindHook('header_menu', function (menu) {
menu.statisticsPage = {
path: '/statistic',
name: '数据统计',
icon: 'bar-chart',
adminFlag: true
}
})
this.bindHook('app_route', function (app) {
app.statisticsPage = {
path: '/statistic',
component: StatisticsPage
}
})
}