perf: 优化首页

This commit is contained in:
xiaoxian521
2022-11-29 15:08:05 +08:00
parent 7f0354cd63
commit fe9f6e5493
8 changed files with 106 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ defineOptions({
name: "Danmaku"
});
const danmaku = ref<any>(null);
const danmaku = ref();
const danmus = ref<any[]>(getDanmuData());
const danmuMsg = ref<string>("");
let timer = 0;
@@ -112,7 +112,7 @@ function addDanmu() {
target="_blank"
style="font-size: 16px; margin: 0 4px 5px"
>
vue-danmaku
vue3-danmaku
</el-link>
</span>
</div>