fork from bc4552c5a8
This commit is contained in:
14
exts/yapi-plugin-advanced-mock/client.js
Normal file
14
exts/yapi-plugin-advanced-mock/client.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user