|
@@ -2321,7 +2321,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async addParameterName () {//设置参数名称中的保存按钮
|
|
|
- if (this.namelists) {
|
|
|
+ if (this.namelists.length) {
|
|
|
let tag = true
|
|
|
this.namelists.forEach(val => {
|
|
|
if (!val.name || !val.k) {
|
|
@@ -2340,8 +2340,8 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- type: "error",
|
|
|
- message: "请设置参数"
|
|
|
+ type: "warning",
|
|
|
+ message: "请先添加参数"
|
|
|
})
|
|
|
}
|
|
|
},
|