bianjiang 1 year ago
parent
commit
130789aade

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