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