From e6ebfd763c729dad33ffaad4d69ded1ec4bdebc5 Mon Sep 17 00:00:00 2001 From: simon3000 Date: Wed, 17 Jan 2024 13:58:28 +0800 Subject: [PATCH] DD remove unnecessary code --- src/views/DD.vue | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/views/DD.vue b/src/views/DD.vue index debe165a..657db80e 100644 --- a/src/views/DD.vue +++ b/src/views/DD.vue @@ -8,9 +8,9 @@ :data-component="dComp" page-mode /> -
+

-

想要看完整列表? 可能会卡哦

+

想要看完整列表?

上次更新: {{lastUpdate}}

@@ -32,7 +32,6 @@ export default { all: false, loading: false, time: undefined, - show: 64, dComp: dVirtualItem } }, @@ -45,9 +44,6 @@ export default { this.dds = await get('fullGuard', 'some') } }, - destroyed() { - document.onscroll = null - }, computed: { rank: function() { let dds = { ...this.dds } @@ -56,25 +52,18 @@ export default { .map(dd => ({ ...dd, power: dd.dd[0].length * 100 + dd.dd[1].length * 10 + dd.dd[2].length })) .sort((a, b) => b.power - a.power) }, - // rankLimit() { - // return this.rank.filter((g, index) => index < this.show) - // }, lastUpdate() { if (this.time) { return moment(this.time).format('M月D日 H:M') } return undefined }, - allDisplay() { - return this.show >= this.rank.length - }, }, methods: { loadAll: async function() { this.loading = true this.dds = await get('fullGuard', 'all') this.all = true - this.show = Infinity }, }, components: {