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) => {
|
||||
if (!projectId) return
|
||||
const email = localStorage.getItem("email") ?? "";
|
||||
const organization = email?.split("@")[1]?.split(".")[0];
|
||||
let response = await setFloorItemApi(
|
||||
organization,
|
||||
selectedFloorItem.userData.modelUuid,
|
||||
newName,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
projectId
|
||||
);
|
||||
selectedFloorItem.userData = {
|
||||
|
|
|
@ -146,6 +146,9 @@ const List: React.FC<ListProps> = ({ items = [], remove }) => {
|
|||
newName,
|
||||
projectId
|
||||
);
|
||||
// console.log("response: ", response);
|
||||
console.log(' zoneAssetId.id,: ', zoneAssetId.id,);
|
||||
|
||||
setName(zoneAssetId.id, response.modelName);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,12 +15,12 @@ export const setFloorItemApi = async (
|
|||
organization,
|
||||
modelUuid,
|
||||
modelName,
|
||||
projectId,
|
||||
position,
|
||||
rotation,
|
||||
assetId,
|
||||
isLocked,
|
||||
isVisible,
|
||||
projectId,
|
||||
};
|
||||
const response = await fetch(`${url_Backend_dwinzo}/api/V1/setAsset`, {
|
||||
method: "POST",
|
||||
|
|
Loading…
Reference in New Issue