ソースを参照

fix: 修改bug

bill 1 年間 前
コミット
e4b78b1f70
1 ファイル変更1 行追加5 行削除
  1. 1 5
      src/view/case/draw/board/index.js

+ 1 - 5
src/view/case/draw/board/index.js

@@ -57,11 +57,7 @@ export const create = async (store, canvas) => {
       },
     };
     const update = (newData) => {
-      layer.uiControl.setAttributes(
-        type,
-        type === bgImage ? "upload" : "update",
-        { ...newData, version: 2 }
-      );
+      layer.uiControl.setAttributes(type, "update", { ...newData, version: 2 });
     };
     refs.bus.emit("selectShape", shape);
   });