yapi/exts/yapi-plugin-advanced-mock/client.js
2017-10-26 13:57:12 +08:00

14 lines
345 B
JavaScript

import AdvMock from './AdvMock'
import mockCol from './MockCol/mockColReducer.js'
module.exports = function(){
this.bindHook('interface_tab', function(tabs){
tabs.advMock = {
name: '高级Mock',
component: AdvMock
}
})
this.bindHook('add_reducer', function(reducerModules){
reducerModules.mockCol = mockCol;
})
}