|
@@ -128,6 +128,7 @@ const applyGlobal = async (position: TaggingPosition, keys: string | string[]) =
|
|
|
let unKeepAdding = shallowRef<() => void>();
|
|
|
const keepAdding = () => {
|
|
|
unKeepAdding.value && unKeepAdding.value();
|
|
|
+ sdk.startAddSth();
|
|
|
const hide = Message.show({ msg: "请在模型上单击选择标签位置", type: "warning" });
|
|
|
showId.value = void 0;
|
|
|
|
|
@@ -139,18 +140,21 @@ const keepAdding = () => {
|
|
|
if (!position) {
|
|
|
Message.error("当前位置无法添加");
|
|
|
} else {
|
|
|
- console.error(tagging.value);
|
|
|
const storePosition = createTaggingPosition({
|
|
|
...position,
|
|
|
taggingId: tagging.value!.id,
|
|
|
});
|
|
|
taggingPositions.value.push(storePosition);
|
|
|
showId.value = storePosition.id;
|
|
|
+ nextTick(() => {
|
|
|
+ getTaggingPosNode(storePosition)!.changeCanMove(true);
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
|
|
|
unKeepAdding.value = () => {
|
|
|
hide();
|
|
|
+ sdk.endAddSth();
|
|
|
removeListener();
|
|
|
unKeepAdding.value = void 0;
|
|
|
};
|