From 30e858fa504b268b9b436afca0a1259cf6e8c488 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 八月 2025 11:01:40 +0800
Subject: [PATCH] 优化

---
 admin/src/components/business/OperaCategoryWindow.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/admin/src/components/business/OperaCategoryWindow.vue b/admin/src/components/business/OperaCategoryWindow.vue
index 252600a..e3f47e0 100644
--- a/admin/src/components/business/OperaCategoryWindow.vue
+++ b/admin/src/components/business/OperaCategoryWindow.vue
@@ -113,7 +113,7 @@
       this.title = title
       this.categorys = JSON.parse(JSON.stringify(categorys||[]));
       // this.categorys = this.getTreeData(this.categorys)
-      console.log(this.categorys)
+      console.log(parentId)
       this.visible = true
       this.form = {
         id: null,
@@ -122,7 +122,7 @@
         remark: '',
         categoryList: [],
         sortnum: null,
-        parentId: parentId
+        parentId: parentId || null
       }
       this.form.type = categoryType
       // 鏂板缓
@@ -130,6 +130,7 @@
       if (target == null) {
         this.$nextTick(() => {
           this.$refs.form.resetFields()
+          this.form.parentId = parentId
           this.form[this.configData['field.id']] = null
           this.form.categoryList = []
           /* if (parentIdPath && parentIdPath != null) {

--
Gitblit v1.9.3