update:修改店铺数据库配置编辑页面弹出显示逻辑,父组件控制子组件关

This commit is contained in:
lihaoyuan 2025-10-18 17:19:39 +08:00
parent 3588d62dd1
commit f3dc093edf
2 changed files with 9 additions and 4 deletions

View File

@ -288,13 +288,16 @@
this.$refs.formRef.validate((valid) => {
if (valid) {
this.$emit('save', this.cloneData(this.innerFormData))
this.myVisible=false
} else {
this.$message.error('请完善表单信息')
return false
this.$message.error('请检查表单信息是否正确或者完整')
return false;
}
})
},
//
closeDrawer() {
this.myVisible = false;
}
},
}
</script>

View File

@ -271,8 +271,10 @@
if (res.status == 200) {
this.$message.success('操作成功')
this.fetchDbConfigList()
this.$refs.storeConfDrawerRef.closeDrawer(); //
}else{
this.$message.error(res.msg)
}
this.drawerVisible = false
},
//