bill 8 月之前
父节点
当前提交
4f40258ebb
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 2 1
      src/api/tagging.ts
  2. 4 2
      src/components/tagging/sign-new.vue

+ 2 - 1
src/api/tagging.ts

@@ -50,7 +50,8 @@ const serviceToLocal = (serviceTagging: ServerTagging): Tagging => ({
   title: serviceTagging.tagTitle,
   desc: serviceTagging.tagDescribe,
   part: serviceTagging.leaveBehind,
-  show3dTitle: serviceTagging.show3dTitle,
+  show3dTitle: true, 
+  // show3dTitle: serviceTagging.show3dTitle,
   method: serviceTagging.getMethod,
   principal: serviceTagging.getUser,
   audio: serviceTagging.audio,

+ 4 - 2
src/components/tagging/sign-new.vue

@@ -84,7 +84,6 @@ const tag = sdk.createTagging({
 });
 
 const changePos = () => {
-  console.error("getImageCenter", tag.getImageCenter());
   pos.value = { localPos: tag.getImageCenter(), modelId: props.scenePos.modelId };
 };
 
@@ -94,7 +93,10 @@ watchEffect(() => {
 });
 watchEffect(() => tag.changeMat(props.scenePos.mat));
 watchEffect(() => tag.changeFontSize(props.scenePos.fontSize));
-watchEffect(() => tag.changeLineHeight(props.scenePos.lineHeight));
+watchEffect(() => {
+  tag.changeLineHeight(props.scenePos.lineHeight);
+  changePos();
+});
 watchEffect(() => tag.changeTitle(props.tagging.title));
 watchEffect(() => tag.visibilityTitle(props.tagging.show3dTitle));
 watchEffect(() => {