liwei 1 年之前
父节点
当前提交
94461dd3eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/editor/module/actions/edit.ts

+ 1 - 1
src/modules/editor/module/actions/edit.ts

@@ -105,7 +105,7 @@ export const editActions = EditorModule.action({
   
    async selectObjs(ids: string[]) {
      this.store.selected = ids;
-     this.store.selectId = ids.length > 0 ? (Date.now() + "") : ""
+     this.store.selectId = ids.length > 1 ? (Date.now() + "") : ""
    },
 
   // 添加组件到画布