Merge remote-tracking branch 'origin/v3-agv' into v3
This commit is contained in:
commit
c5947dd82f
|
@ -72,12 +72,18 @@ function MainScene() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const handleObjectRename = async (newName: string) => {
|
const handleObjectRename = async (newName: string) => {
|
||||||
|
if (!projectId) return
|
||||||
const email = localStorage.getItem("email") ?? "";
|
const email = localStorage.getItem("email") ?? "";
|
||||||
const organization = email?.split("@")[1]?.split(".")[0];
|
const organization = email?.split("@")[1]?.split(".")[0];
|
||||||
let response = await setFloorItemApi(
|
let response = await setFloorItemApi(
|
||||||
organization,
|
organization,
|
||||||
selectedFloorItem.userData.modelUuid,
|
selectedFloorItem.userData.modelUuid,
|
||||||
newName,
|
newName,
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
projectId
|
projectId
|
||||||
);
|
);
|
||||||
selectedFloorItem.userData = {
|
selectedFloorItem.userData = {
|
||||||
|
|
|
@ -146,6 +146,9 @@ const List: React.FC<ListProps> = ({ items = [], remove }) => {
|
||||||
newName,
|
newName,
|
||||||
projectId
|
projectId
|
||||||
);
|
);
|
||||||
|
// console.log("response: ", response);
|
||||||
|
console.log(' zoneAssetId.id,: ', zoneAssetId.id,);
|
||||||
|
|
||||||
setName(zoneAssetId.id, response.modelName);
|
setName(zoneAssetId.id, response.modelName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,12 +15,12 @@ export const setFloorItemApi = async (
|
||||||
organization,
|
organization,
|
||||||
modelUuid,
|
modelUuid,
|
||||||
modelName,
|
modelName,
|
||||||
projectId,
|
|
||||||
position,
|
position,
|
||||||
rotation,
|
rotation,
|
||||||
assetId,
|
assetId,
|
||||||
isLocked,
|
isLocked,
|
||||||
isVisible,
|
isVisible,
|
||||||
|
projectId,
|
||||||
};
|
};
|
||||||
const response = await fetch(`${url_Backend_dwinzo}/api/V1/setAsset`, {
|
const response = await fetch(`${url_Backend_dwinzo}/api/V1/setAsset`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
Loading…
Reference in New Issue