mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-01 14:05:44 +08:00
Merge branch 'dev' of http://gitlab.corp.qunar.com/mfe/yapi into dev
This commit is contained in:
commit
8432141954
@ -54,6 +54,37 @@ class ProjectData extends Component {
|
||||
})
|
||||
}
|
||||
|
||||
parseUrl(url){
|
||||
let parser = document.createElement('a');
|
||||
parser.href = url;
|
||||
return {
|
||||
protocol: parser.protocol,
|
||||
hostname: parser.hostname,
|
||||
port: parser.port,
|
||||
pathname: parser.pathname,
|
||||
search: parser.search,
|
||||
host: parser.host
|
||||
}
|
||||
}
|
||||
|
||||
importPostman(data){
|
||||
var a = {
|
||||
path: '/api/aa',
|
||||
queryParams: []
|
||||
}
|
||||
|
||||
a.path = a.path.indexOf('/api') === 0 ? a.path.substr('/api'.length) : a.path
|
||||
|
||||
return {
|
||||
path: a.path,
|
||||
query: queryParams
|
||||
}
|
||||
}
|
||||
|
||||
async handleAddInterface(){
|
||||
let data = await axios.post('/api/')
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
@ -820,6 +820,8 @@ class interfaceController extends baseController {
|
||||
|
||||
return ctx.body = yapi.commons.resReturn(successNum);
|
||||
}
|
||||
|
||||
|
||||
async getCatMenu(ctx) {
|
||||
let project_id = ctx.request.query.project_id;
|
||||
if(!project_id){
|
||||
|
Loading…
Reference in New Issue
Block a user