自建API接口开发
This commit is contained in:
@@ -35,6 +35,9 @@ export default createStore({
|
||||
openApiUrlMethodMap: {},
|
||||
// 方法统计{post: 10, total: 20}
|
||||
openApiMethodStatistic: {},
|
||||
|
||||
// 自建API原始文档
|
||||
customRequestDoc: {},
|
||||
}
|
||||
},
|
||||
getters: {
|
||||
@@ -99,6 +102,10 @@ export default createStore({
|
||||
setOpenApiMethodStatistic(state, openApiMethodStatistic) {
|
||||
state.openApiMethodStatistic = openApiMethodStatistic;
|
||||
},
|
||||
// openApi
|
||||
setCustomRequestDoc(state, customRequestDoc) {
|
||||
state.customRequestDoc = customRequestDoc;
|
||||
},
|
||||
addTableName(state, item) {
|
||||
let sameObj = Object.assign({}, state.pageTabNameMap);
|
||||
sameObj[item.key] = item.val;
|
||||
|
||||
Reference in New Issue
Block a user