aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/site/src/views/index/index.vue
diff options
context:
space:
mode:
authorNtskwK <natsukawa247@outlook.com>2024-09-03 16:33:25 +0800
committerGitHub <noreply@github.com>2024-09-03 16:33:25 +0800
commit0ea05724395b7486f3dd88e39757a20dd7f29bef (patch)
tree137da3c52ef0940a956cd83180c63c3477ae7e4c /site/src/views/index/index.vue
parent09f5a2634c1817780a068a224d1d0f21f8e18009 (diff)
parent65c8f781eff477f65183a480a9f63255a2f8f77f (diff)
downloadHydroRoll-0ea05724395b7486f3dd88e39757a20dd7f29bef.tar.gz
HydroRoll-0ea05724395b7486f3dd88e39757a20dd7f29bef.zip
Merge pull request #100 from NtskwK/fix_site
Fix site
Diffstat (limited to 'site/src/views/index/index.vue')
-rw-r--r--site/src/views/index/index.vue24
1 files changed, 22 insertions, 2 deletions
diff --git a/site/src/views/index/index.vue b/site/src/views/index/index.vue
index edba96f..14759b8 100644
--- a/site/src/views/index/index.vue
+++ b/site/src/views/index/index.vue
@@ -3,9 +3,27 @@ import Left from './Left.vue'
import Right from './Right.vue'
</script>
+<script lang="ts">
+export default {
+ data() {
+ return {
+ isplay: false
+ }
+ },
+ methods: {
+ PlayOn() {
+ this.isplay = true
+ }
+ }
+}
+</script>
+
<template>
<header>
- <img alt="Vue logo" class="logo" src="@/assets/Hydroroll-small.svg" width="125" height="125" />
+ <img src="@/assets/Hydroroll-small.svg"
+ alt="Vue logo"
+ class="logo"
+ width="125" height="125" />
<div class="wrapper">
<Left msg="饼在画了!" />
@@ -13,7 +31,9 @@ import Right from './Right.vue'
</header>
<main class="main">
- <video src="@/assets/video/bg.mp4" loop=true autoplay=true></video>
+ <video loop=true preload="auto" muted="true" autoplay @canplay="PlayOn" v-show="isplay" >
+ <source src="@/assets/video/bg.mp4" type="video/mp4" />
+ </video>
<Right />
</main>
</template>