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(() => {
- +
暂无文章