swagger查看页面的各种优化,替换首页原有文档入口

This commit is contained in:
暮光:城中城
2021-10-30 19:52:28 +08:00
parent 59ecaf4477
commit c8f570fa6a
46 changed files with 392 additions and 105 deletions

View File

@@ -10,6 +10,7 @@ export default createStore({
swaggerDoc: {},
swaggerDefinitions: {},
swaggerTreePathMap: {},
methodStatistic: {},
}
},
mutations: {
@@ -26,6 +27,9 @@ export default createStore({
setSwaggerTreePathMap(state, swaggerTreePathMap) {
state.swaggerTreePathMap = swaggerTreePathMap;
},
setMethodStatistic(state, methodStatistic) {
state.methodStatistic = methodStatistic;
},
addTableName(state, item) {
let sameObj = Object.assign({}, state.pageTabNameMap);
sameObj[item.key] = item.val;