소스 검색

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

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)