|
@@ -3,6 +3,7 @@ import { text, table, compass, title, bgImage, customImage } from "./shape";
|
|
|
import Layer from "./editCAD/Layer";
|
|
|
import { history } from "./editCAD/History/History.js";
|
|
|
import { uploadFile } from "@/store/system";
|
|
|
+import { uploadNewFile } from "@/store/case";
|
|
|
|
|
|
// const toStore = (refs) => {
|
|
|
// return {
|
|
@@ -101,7 +102,7 @@ export const create = async (store, canvas) => {
|
|
|
const url = await fetch(bgImage)
|
|
|
.then((res) => res.blob())
|
|
|
.then((blob) =>
|
|
|
- uploadFile(new File([blob], (store.id || "image") + ".png"))
|
|
|
+ uploadNewFile(new File([blob], (store.id || "image") + ".png"))
|
|
|
);
|
|
|
|
|
|
floor.bgImage.url = url;
|