ソースを参照

update default value

SyuanYu 1 年間 前
コミット
46e5dbe6e1
1 ファイル変更3 行追加3 行削除
  1. 3 3
      frontend/src/views/main/Upload.vue

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

@@ -19,7 +19,7 @@ const Form = ref();
 let anchor = ref(0);
 let templateId = ref(0);
 let selectAnchor = ref("angela");
-let selectTemplate = ref("");
+let selectTemplate = ref("style1");
 
 // props
 let dialog = reactive({
@@ -78,7 +78,7 @@ const getImageUrl = (imgFolder: string, name: string) => {
     .href;
 };
 
-watch(dialog, (newVal, oldVal) => {
+watch(dialog, (newVal) => {
   if (!newVal.show && newVal.state === "error") {
     return;
   } else if (!newVal.show && newVal.state === "success") {
@@ -106,7 +106,7 @@ async function Submit() {
       style: selectTemplate.value,
       lang: "zh",
     };
-    
+
     const ret: VideoUploaded = await mainStore.uploadPlot(
       video_data,
       zipFiles.value[0]