Commit bfc84217 authored by kewei.jia's avatar kewei.jia

修改pipeline 新建时 数据无法联动的问题

parent 06d34b67
......@@ -180,13 +180,14 @@ export default {
},
getRefs(repo) {
console.log(repo)
getRefs(repo.id).then(res => {
this.refs[repo.id] = res.data.data.map(item => {
this.$set(this.refs, repo.id, res.data.data.map(item => {
return {
id: item.id,
name: item.ref
}
})
}))
this.refs[repo.id].push({ id: '0', name: '请选择' })
this.refs[repo.id].reverse()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment