aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/site/src
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-07 01:55:31 +0800
committer简律纯 <i@jyunko.cn>2023-11-07 01:55:31 +0800
commit6198398808220bd60595ecf64e342664f350a353 (patch)
tree4a452ac18bacf9d09e6f5dd905e0c64316d5ef88 /site/src
parent0fff2247b0ede4e2290bb058853a406259539573 (diff)
downloadHydroRoll-6198398808220bd60595ecf64e342664f350a353.tar.gz
HydroRoll-6198398808220bd60595ecf64e342664f350a353.zip
refactor(components): add `Date` type checking
Diffstat (limited to 'site/src')
-rw-r--r--site/src/App.vue2
-rw-r--r--site/src/components/Left.vue4
2 files changed, 3 insertions, 3 deletions
diff --git a/site/src/App.vue b/site/src/App.vue
index e3124b4..bf7fa55 100644
--- a/site/src/App.vue
+++ b/site/src/App.vue
@@ -8,7 +8,7 @@ import TheWelcome from './components/TheWelcome.vue'
<img alt="Vue logo" class="logo" src="./assets/Hydroroll-small.svg" width="125" height="125" />
<div class="wrapper">
- <Left msg="饼在画了!" date="2024-05-10T12:00:00Z" />
+ <Left msg="饼在画了!" />
</div>
</header>
diff --git a/site/src/components/Left.vue b/site/src/components/Left.vue
index 342e49b..331c881 100644
--- a/site/src/components/Left.vue
+++ b/site/src/components/Left.vue
@@ -16,7 +16,7 @@ export default {
},
date:{
type:Date,
- default:'2024-05-10T12:00:00Z'
+ default:new Date('2024-05-10T12:00:00Z')
}
},
methods:{
@@ -47,7 +47,7 @@ export default {
距离水系公测还有
</h3>
<h2>
- {{ day }}d {{ hour }}h {{ min }}m {{ sec }}s
+ {{ day }} 天 {{ hour }} 时 {{ min }} 分 {{ sec }} 秒
</h2>
</div>
</template>