feat: npm 第三级下钻分数计算

This commit is contained in:
chenjinsong
2022-08-24 11:43:04 +08:00
parent 45c8b97a2e
commit 0bbef4e7b0
2 changed files with 34 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ const panel = {
networkOverviewTabList: [], // 存储tab列表的一些状态如是否选中
tabOperationType: 0, // 操作类型:2-二级菜单3-三级菜单4-四级菜单5-切换tab6-切换metric7-操作Customize
tabOperationBeforeType: 0, // 记录上次的操作类型
npmThirdLevelMenuScore: null, // npm overview 第三级菜单的panel分数
npmLocationCountry: '', // npm location的查询条件--国家
npmLocationSide: 'server' // npm location的查询条件--方向
},
@@ -139,6 +140,9 @@ const panel = {
},
setNpmLocationSide (state, side) {
state.npmLocationSide = side
},
setNpmThirdLevelMenuScore (state, score) {
state.npmThirdLevelMenuScore = score
}
},
getters: {
@@ -222,6 +226,9 @@ const panel = {
},
getNpmLocationSide (state) {
return state.npmLocationSide
},
getNpmThirdLevelMenuScore (state) {
return state.npmThirdLevelMenuScore
}
},
actions: {