...
|
...
|
@@ -83,7 +83,7 @@ export default { |
|
|
actions: {
|
|
|
[FETCH_GROUP_REQUEST]({commit}) {
|
|
|
commit(FETCH_GROUP_REQUEST);
|
|
|
return api.get('/gateway/api/findGroup').then(res => {
|
|
|
return api.get('/api/findGroup').then(res => {
|
|
|
commit(FETCH_GROUP_SUCCESS, {list: res});
|
|
|
}, () => {
|
|
|
commit(FETCH_GROUP_FAILURE);
|
...
|
...
|
@@ -94,14 +94,14 @@ export default { |
|
|
|
|
|
commit(FETCH_API_REQUEST, params);
|
|
|
if (state.apiSearchType === 'controller') {
|
|
|
apiPromise = api.get('/gateway/api/findByName', {
|
|
|
apiPromise = api.get('/api/findByName', {
|
|
|
groupName: state.groupName || void 0,
|
|
|
key: state.apiKeyword,
|
|
|
page: state.apiPage,
|
|
|
rows: state.apiRows
|
|
|
});
|
|
|
} else if (state.apiSearchType === 'keyword') {
|
|
|
apiPromise = api.get('/gateway/api/find', {
|
|
|
apiPromise = api.get('/api/find', {
|
|
|
groupName: state.groupName || void 0,
|
|
|
key: state.apiKeyword,
|
|
|
page: state.apiPage,
|
...
|
...
|
@@ -125,7 +125,7 @@ export default { |
|
|
return Promise.resolve();
|
|
|
}
|
|
|
}
|
|
|
apiPromise = api.get('/gateway/api/findByGroup', {
|
|
|
apiPromise = api.get('/api/findByGroup', {
|
|
|
key: state.groupName,
|
|
|
page: state.apiPage,
|
|
|
rows: state.apiRows
|
...
|
...
|
|