swagger查看页面的各种优化,替换首页原有文档入口
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user