bianjiang 1 éve
szülő
commit
6a793b69c4

+ 4 - 0
src/modules/editor/components/CompUI/basicUI/Page/PageMusic.tsx

@@ -96,6 +96,10 @@ export const PageMusic = defineComponent({
       }, 500);
     };
     const checkAutoPlay = () => {
+      const duration = audioBgm.value.duration();
+      if (duration) {
+        state.duration = duration;
+      }
       if (!audioBgm.value || store.isEditMode) {
         return;
       }

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

@@ -32,7 +32,7 @@ export default defineComponent({
       const xhr = new XMLHttpRequest();
       xhr.open(
         "post",
-        "http://186b2d5554134321a0afd4b1be443273.apig.ap-southeast-1.huaweicloudapis.com/chatgpt"
+        "https://186b2d5554134321a0afd4b1be443273.apig.ap-southeast-1.huaweicloudapis.com/chatgpt"
       );
       xhr.setRequestHeader("content-type", "application/json");
       xhr.send(JSON.stringify(reqData));