fix(项目管理): 修复环境变量按应用场景筛选点击无响应的缺陷
--bug=1034504 --user=王孝刚 【项目设置】创建/编辑环境-通用配置-按应用场景筛选点击无响应 https://www.tapd.cn/55049933/s/1453083
This commit is contained in:
parent
352e466a30
commit
e5e612c8c0
|
@ -332,7 +332,7 @@ export default {
|
|||
watch: {
|
||||
items: {
|
||||
handler(v) {
|
||||
if (!this.selectVariable) {
|
||||
if (this.needInitData()) {
|
||||
this.initData(v);
|
||||
}
|
||||
},
|
||||
|
@ -341,6 +341,15 @@ export default {
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
needInitData() {
|
||||
if (this.selectVariable) {
|
||||
return false;
|
||||
}
|
||||
if (this.condition.filters && this.condition.filters.scope && this.condition.filters.scope.length > 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
remove: function (index) {
|
||||
const dataIndex = this.pageData.findIndex((d) => d.name === index.name);
|
||||
if (dataIndex !== -1) {
|
||||
|
|
Loading…
Reference in New Issue