From c5f2e4dc2ad084202c0cc863293268ad033fcfaa Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Tue, 30 Jul 2024 13:52:25 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=A6=96=E9=A1=B5=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BAloading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/index.vue | 2 +- frontend/src/pages/post.vue | 244 +++++++++++++++++++---------------- 2 files changed, 131 insertions(+), 115 deletions(-) diff --git a/frontend/src/pages/index.vue b/frontend/src/pages/index.vue index cae2b17..8427b6b 100644 --- a/frontend/src/pages/index.vue +++ b/frontend/src/pages/index.vue @@ -87,11 +87,11 @@ export default { data() { return { value: 0, - loading: false, } }, created() { + this.$store.commit('tokenCheck', this.$bus) this.$store.commit('initMetadata', 'banner') this.$store.commit('initMetadata', 'brand') diff --git a/frontend/src/pages/post.vue b/frontend/src/pages/post.vue index 4113144..69b8456 100644 --- a/frontend/src/pages/post.vue +++ b/frontend/src/pages/post.vue @@ -1,134 +1,142 @@ @@ -372,6 +380,14 @@ button { color: #ffffff; } +#loading-tips { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + font-size: 24px; +} + /* 适配pc端 */ @media (min-width: 600px) {