mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 23:59:22 +00:00
fix: correct categories iteration to access results in AssetList component
This commit is contained in:
@@ -84,7 +84,7 @@ export default {
|
|||||||
nameComponentMap[item.name] = item
|
nameComponentMap[item.name] = item
|
||||||
}
|
}
|
||||||
this.$axios.get('/api/v1/assets/categories/').then(categories => {
|
this.$axios.get('/api/v1/assets/categories/').then(categories => {
|
||||||
for (const item of categories) {
|
for (const item of categories.results) {
|
||||||
const name = item.value
|
const name = item.value
|
||||||
// 如果报错,需要在上面的 submenu 中添加对应的组件
|
// 如果报错,需要在上面的 submenu 中添加对应的组件
|
||||||
nameComponentMap[name]['hidden'] = false
|
nameComponentMap[name]['hidden'] = false
|
||||||
|
Reference in New Issue
Block a user