소스 검색

Merge remote-tracking branch 'origin/master' into front-dev

SyuanYu 1 년 전
부모
커밋
a0e36c794a
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      frontend/src/api.ts
  2. 1 1
      frontend/src/interfaces/index.ts
  3. 1 1
      frontend/src/views/main/Upload.vue

+ 1 - 1
frontend/src/api.ts

@@ -81,7 +81,7 @@ export const api = {
   async uploadPlot(token: string, video_data: VideoCreate, file: File) {
     const formData = new FormData();
     formData.append("title", video_data.title)
-    formData.append("anchor_id", video_data.anchor_id)
+    formData.append("anchor", video_data.anchor)
     formData.append("style", video_data.style)
     formData.append("lang", video_data.lang)
     formData.append("upload_file", file)

+ 1 - 1
frontend/src/interfaces/index.ts

@@ -51,7 +51,7 @@ export interface Video {
 
 export interface VideoCreate {
   title: string;
-  anchor_id: string;
+  anchor: string;
   style: string;
   lang: string;
 }

+ 1 - 1
frontend/src/views/main/Upload.vue

@@ -102,7 +102,7 @@ async function Submit() {
 
     const video_data: VideoCreate = {
       title: title.value,
-      anchor_id: selectAnchor.value,
+      anchor: selectAnchor.value,
       style: selectTemplate.value,
       lang: "zh",
     };