Skip to content

Commit

Permalink
💄 Update style.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolerious committed Oct 6, 2024
1 parent d9c0ea3 commit 7d2ad2c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
39 changes: 23 additions & 16 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
<script setup lang="ts">
import { RouterView } from 'vue-router'
document.documentElement.addEventListener('touchstart', function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
}, false);
import { RouterView } from 'vue-router';
document.documentElement.addEventListener(
'touchstart',
function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
},
false,
);
var lastTouchEnd = 0;
document.documentElement.addEventListener('touchend', function (event) {
var now = Date.now();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
}, false);
document.documentElement.addEventListener(
'touchend',
function (event) {
var now = Date.now();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
},
false,
);
</script>

<template>
<RouterView />
<el-backtop :right="10" :bottom="40" />
<RouterView />
<el-backtop :right="10" :bottom="40" />
</template>


<style lang="less" scoped></style>
4 changes: 2 additions & 2 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
>
</el-col>
</el-row>
<div class="px-1">
<div class="px-1 lg:w-1/2 mx-auto">
<canvas id="collection"></canvas>
</div>
</div>
Expand Down Expand Up @@ -107,7 +107,7 @@ function createCollectionChart() {
labels: data.map(row => row.year),
datasets: [
{
label: '本周收藏单词统计',
label: '本周收藏单词统计(开发中)',
data: data.map(row => row.count),
},
],
Expand Down

0 comments on commit 7d2ad2c

Please sign in to comment.