diff --git a/app.vue b/app.vue
index d5a176a..b6f2e11 100644
--- a/app.vue
+++ b/app.vue
@@ -26,6 +26,8 @@ onMounted(() => {
icon: 'i-tabler-alert-triangle',
})
modal.open(ModalAuthentication)
+ } else if (!res && !loginState.token) {
+ router.replace('/user/authenticate')
}
})
})
diff --git a/composables/useVideoSubtitleEmbedding.ts b/composables/useVideoSubtitleEmbedding.ts
index f38f4b4..4750925 100644
--- a/composables/useVideoSubtitleEmbedding.ts
+++ b/composables/useVideoSubtitleEmbedding.ts
@@ -39,6 +39,8 @@ export const useVideoSubtitleEmbedding = async (
};
}
+ console.log(`video clip: ${videoUrl}`)
+
const videoClip = new MP4Clip((await fetch(videoUrl)).body!)
const videoSprite = new OffscreenSprite(videoClip)
videoSprite.time = { duration: videoClip.meta.duration, offset: 0 }
diff --git a/layouts/authenticate.vue b/layouts/authenticate.vue
new file mode 100644
index 0000000..369acfc
--- /dev/null
+++ b/layouts/authenticate.vue
@@ -0,0 +1,9 @@
+
+
+
+
已登录为
-
+
{{ loginState.user?.username }}
+ 请使用以下方式登录 +
++ {{ item.label }} +
++ {{ item.description }} +
+ + +