mirror of https://github.com/veops/cmdb.git
fix ci types show
This commit is contained in:
parent
7b96ac4638
commit
99d11e11ce
|
@ -10,7 +10,7 @@
|
||||||
>
|
>
|
||||||
<a-list-item slot="renderItem" slot-scope="item">
|
<a-list-item slot="renderItem" slot-scope="item">
|
||||||
|
|
||||||
<template v-if="item === null">
|
<template v-if="Object.keys(item).length === 0">
|
||||||
<a-button class="new-btn" type="dashed" @click="handleCreate">
|
<a-button class="new-btn" type="dashed" @click="handleCreate">
|
||||||
<a-icon type="plus"/>
|
<a-icon type="plus"/>
|
||||||
新增
|
新增
|
||||||
|
@ -193,7 +193,7 @@ export default {
|
||||||
getCITypes () {
|
getCITypes () {
|
||||||
getCITypes().then(res => {
|
getCITypes().then(res => {
|
||||||
this.CITypes = res.ci_types
|
this.CITypes = res.ci_types
|
||||||
this.CITypes.unshift(null)
|
this.CITypes.unshift({})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue