浏览代码

修复刚新建的分组不能修改的问题

mxd 3 年之前
父节点
当前提交
401033f74b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      magic-editor/src/console/src/components/resources/magic-api-list.vue

+ 2 - 0
magic-editor/src/console/src/components/resources/magic-api-list.vue

@@ -536,6 +536,8 @@ export default {
           requestGroup('group/create', this.createGroupObj).success(data => {
             this.createGroupObj.id = data
             this.createGroupObj.folder = true
+            this.createGroupObj.paths = []
+            this.createGroupObj.options = []
             bus.$emit('report', 'group_create')
             bus.$emit('status', `分组「${this.createGroupObj.name}」创建成功`)
             this.deleteOrAddGroupToTree(this.tree, this.createGroupObj)