fix: 修复基础分类新增时上级类目为空

This commit is contained in:
2023-06-12 10:29:08 +08:00
parent 11991e46e6
commit 4d7cc13dd8
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -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()