fix: 修复基础分类新增时上级类目为空
This commit is contained in:
Binary file not shown.
@@ -255,7 +255,7 @@ export default {
|
||||
}
|
||||
// form.enabled = `${form.enabled}`
|
||||
// 为了初始化数据 -> 树的数据
|
||||
if (form.id != null || form.id !== '0') {
|
||||
if (form.id !== null && form.id !== '0' && form.id !== '') {
|
||||
this.getSubTypes(form.id)
|
||||
} else {
|
||||
this.getClass()
|
||||
|
||||
Reference in New Issue
Block a user