From f3486bf3c83bab400dd7818bdfac88c6c4f74c25 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 4 Nov 2025 11:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9D=E5=A7=8B=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=BA=E5=8A=A0=E8=BD=BD=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/DevelopNews.vue | 14 +++++++------- app/pages/article/index.vue | 7 +++---- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/components/DevelopNews.vue b/app/components/DevelopNews.vue index 0b14985..7bc7d0e 100644 --- a/app/components/DevelopNews.vue +++ b/app/components/DevelopNews.vue @@ -11,7 +11,7 @@ interface NewsCategory { // 响应式数据 const newsData = ref([]) -const loading = ref(false) +const loading = ref(true) // 初始为 true,避免渲染时机问题 const error = ref('') // 文章类型配置 @@ -117,7 +117,7 @@ onMounted(() => {
加载失败: {{ error }}
@@ -135,12 +135,12 @@ onMounted(() => {
-
+
{{ category.name }}
查看更多 @@ -172,9 +172,9 @@ onMounted(() => {
- +
-
暂无新闻数据
+
暂无文章
@@ -182,7 +182,7 @@ onMounted(() => {
查看全部文章 diff --git a/app/pages/article/index.vue b/app/pages/article/index.vue index 2703858..229afa3 100644 --- a/app/pages/article/index.vue +++ b/app/pages/article/index.vue @@ -10,7 +10,7 @@ const code = computed(() => route.query.code as string | undefined) // 响应式数据 const articles = ref([]) -const loading = ref(false) +const loading = ref(true) const error = ref('') const page = ref(1) const pageSize = ref(5) @@ -108,7 +108,7 @@ onMounted(() => {
-
{{ error }}
+
{{ error }}
重新加载 @@ -133,7 +133,6 @@ onMounted(() => { spotlight-color="primary" highlight highlight-color="primary" - >
@@ -160,7 +159,7 @@ onMounted(() => {
- +
暂无文章