bianjiang 1 년 전
부모
커밋
130789aade
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/editor/components/Viewport/Slider/SliderLeft/AiText.tsx

+ 1 - 1
src/modules/editor/components/Viewport/Slider/SliderLeft/AiText.tsx

@@ -62,7 +62,7 @@ export default defineComponent({
     const addText = async () => {
       const aitext = `<p style="line-height:1.5;"><span style="font-size:14px;">${state.aiValue}</span></p>`;
       await actions.clickCompToDesign("Text", (comp) => {
-        actions.updateCompData(comp, "value", aitext);
+        actions.updateCompData(comp, "value.text", aitext);
       });
     };