fork from bc4552c5a8
This commit is contained in:
10
exts/yapi-plugin-test/client.js
Normal file
10
exts/yapi-plugin-test/client.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function hander(routers) {
|
||||
routers.test = {
|
||||
name: 'test',
|
||||
component: ()=> 'hello world.'
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = function() {
|
||||
this.bindHook('sub_setting_nav', hander);
|
||||
};
|
||||
4
exts/yapi-plugin-test/index.js
Normal file
4
exts/yapi-plugin-test/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
server: false,
|
||||
client: true
|
||||
}
|
||||
Reference in New Issue
Block a user