Commit b364ea6b authored by 晓彤's avatar 晓彤

修改更新服务列表不显示问题

parent abd38420
......@@ -299,7 +299,7 @@
<el-row :gutter="20">
<el-col :span="14">
<el-select v-model="tagName" filterable clearable class="elSelect" placeholder="请选择镜像,支持模糊搜索">
<el-option v-for="(item,index) in tagOptions" :key="index" :label="item.TagName" :value="item.TagName" />
<el-option v-for="(item,index) in tagOptions" :key="index" :label="item.tagName" :value="item.tagName" />
</el-select>
</el-col>
</el-row>
......@@ -595,11 +595,11 @@ export default {
getImageList({
repoName: 'qa-test/' + service.serviceName
}).then((resp) => {
if (resp.data.data.TagCount > 0) {
this.tagOptions = resp.data.data.TagInfo
this.reponame = resp.data.data.RepoName
if (resp.data.data.tagCount > 0) {
this.tagOptions = resp.data.data.tagInfo
this.reponame = resp.data.data.repoName
// 默认选中第一个
this.tagName = resp.data.data.TagInfo[0].TagName
this.tagName = resp.data.data.tagInfo[0].tagName
this.server = resp.data.data.Server
}
})
......
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