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);
       });
     };