|
@@ -5,10 +5,9 @@ import { required } from "@/utils";
|
|
|
import { useI18n } from "vue-i18n";
|
|
|
import { wsUrl } from "@/env";
|
|
|
import type { VideoCreate } from "@/interfaces";
|
|
|
-import router from "@/router";
|
|
|
-import Dialog from "@/components/Dialog.vue";
|
|
|
import type { VideoUploaded } from "@/interfaces";
|
|
|
|
|
|
+
|
|
|
const { t } = useI18n();
|
|
|
const mainStore = useMainStore();
|
|
|
const WS = mainStore.videosWebSocket;
|
|
@@ -168,19 +167,19 @@ const getImageUrl = (imgFolder: string, name: string) => {
|
|
|
.href;
|
|
|
};
|
|
|
|
|
|
-watch(dialog, (newVal, oldVal) => {
|
|
|
- if (!newVal.show) {
|
|
|
- setTimeout(() => {
|
|
|
- router.push("/main/progress");
|
|
|
- }, 1000);
|
|
|
- }
|
|
|
-});
|
|
|
+// watch(dialog, (newVal, oldVal) => {
|
|
|
+// if (!newVal.show) {
|
|
|
+// setTimeout(() => {
|
|
|
+// router.push("/main/progress");
|
|
|
+// }, 1000);
|
|
|
+// }
|
|
|
+// });
|
|
|
|
|
|
async function Submit() {
|
|
|
WS.send("subscribe");
|
|
|
- setTimeout(() => {
|
|
|
- dialog.show = true;
|
|
|
- }, 2000);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // dialog.show = true;
|
|
|
+ // }, 2000);
|
|
|
await (Form as any).value.validate();
|
|
|
if (valid.value) {
|
|
|
valid.value = false;
|
|
@@ -199,7 +198,7 @@ async function Submit() {
|
|
|
dialog.msg = ret.error_message!
|
|
|
}
|
|
|
valid.value = true;
|
|
|
- // (Form as any).value.reset();
|
|
|
+ (Form as any).value.reset();
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -319,7 +318,7 @@ async function Submit() {
|
|
|
</v-card-text>
|
|
|
<v-card-actions>
|
|
|
<v-spacer></v-spacer>
|
|
|
- <v-btn @click="Submit" :disabled="!valid">
|
|
|
+ <v-btn @click="Submit" :disabled="!valid" variant="outlined">
|
|
|
{{ t("send") }}
|
|
|
</v-btn>
|
|
|
</v-card-actions>
|
|
@@ -385,28 +384,8 @@ async function Submit() {
|
|
|
</v-card-text>
|
|
|
</v-card>
|
|
|
|
|
|
- <template>
|
|
|
+ <!-- <template>
|
|
|
<div class="text-center">
|
|
|
- <!-- <v-dialog v-model="dialog" width="auto">
|
|
|
- <v-card>
|
|
|
- <v-card-text>
|
|
|
- <section class="d-flex flex-column align-center">
|
|
|
- <v-icon
|
|
|
- style="font-size: 70px"
|
|
|
- icon="info"
|
|
|
- color="orange-darken-3"
|
|
|
- />
|
|
|
- <p class="mt-3">影片處理需要約 5-10 分鐘,敬請耐心等候</p>
|
|
|
- </section>
|
|
|
- </v-card-text>
|
|
|
- <v-card-actions>
|
|
|
- <v-btn color="primary" block @click="dialog = false">{{
|
|
|
- t("close")
|
|
|
- }}</v-btn>
|
|
|
- </v-card-actions>
|
|
|
- </v-card>
|
|
|
- </v-dialog> -->
|
|
|
-
|
|
|
<Dialog
|
|
|
:msg="dialog.msg"
|
|
|
:state="dialog.state"
|
|
@@ -414,7 +393,7 @@ async function Submit() {
|
|
|
@close="dialog.show = false"
|
|
|
></Dialog>
|
|
|
</div>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
</v-container>
|
|
|
</template>
|
|
|
|