新增联系人判断

This commit is contained in:
zhaoxiao
2021-08-27 17:10:32 +08:00
parent d1f8a2cb51
commit 21081e000d
+1 -1
View File
@@ -75,7 +75,7 @@ export default {
* 新建联系人
*/
addContacts() {
if (this.selectedCompany) {
if (this.selectedCompany && Object.keys(this.selectedCompany).length > 0) {
this.$refs.contactForm.add()
this.$refs.contactForm.title = '新增'
this.$refs.contactForm.disableSubmit = false