前端删除的报错修改
parent
083fbc8394
commit
642c12457c
|
@ -244,7 +244,7 @@ export default {
|
|||
watch: {
|
||||
'form.parentId': {
|
||||
handler(val){
|
||||
if (val !== undefined && val !== 0){
|
||||
if (val !== undefined && val !== 0 && val !== null){
|
||||
parentCommonElement(val).then(response => {
|
||||
this.attributeInfoList = response.data.attributeInfoList;
|
||||
this.attributeGroupList = response.data.attributeGroupList;
|
||||
|
@ -342,7 +342,7 @@ export default {
|
|||
handleUpdate(row) {
|
||||
this.reset();
|
||||
this.getTreeselect();
|
||||
if (row != null) {
|
||||
if (row != null && row.id) {
|
||||
this.form.parentId = row.parentId;
|
||||
}
|
||||
getCategory(row.id).then(response => {
|
||||
|
|
Loading…
Reference in New Issue