From f96f952d95930e1295051c1bfe348dd324ebf878 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Wed, 16 Jul 2025 13:38:53 +0800
Subject: [PATCH] 添加缓存

---
 src/views/news/index.vue |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/src/views/news/index.vue b/src/views/news/index.vue
index 593f7d3..48a90eb 100644
--- a/src/views/news/index.vue
+++ b/src/views/news/index.vue
@@ -104,13 +104,11 @@
     </div>
     <div class="px-17 mt-10">
       <!-- 新闻条目1 -->
-      <div class="rounded-5 overflow-hidden mb-10" v-for="(t, i) in list" :key="t.dataId">
-        <div class="bg-#f5f7f9 py-12 px-15 " @click="openOriginUrl(t.originUrl)">
+      <div class="rounded-5 overflow-hidden mb-10" v-for="(t) in list" :key="t.dataId">
+        <div class="bg-#f5f7f9 py-12 px-15 ">
           <div class="flex" style="border-bottom: 1px solid rgb(209, 209, 209);">
-            <div class="text-12 h-70 flex-1 line3">{{ t.description }}</div>
-            <!-- <img class="w-90 h-55 flex-none rounded-10 ml-10"
-              :src="t.img"
-              draggable="false"> -->
+            <div class="text-12 h-70 flex-1 line3">{{ t.title }}</div>
+            <img class="w-90 h-55 flex-none rounded-10 ml-10" :src="t.imgUrl" draggable="false">
           </div>
           <div class="mt-5 text-10 text-#8c8c8c flex justify-between">
             <span>{{ t.createTime }}</span>
@@ -163,14 +161,14 @@
   goToPage('/customerService')
 }
 const goToPage = (path) => {
-	if(path=='/mining'){
-		showToast({
-		  message: 'Stay tuned',
-		  position: 'bottom',
-		})
-	}else{
-		router.push(path)
-	}
+  if (path == '/mining') {
+    showToast({
+      message: 'Stay tuned',
+      position: 'bottom',
+    })
+  } else {
+    router.push(path)
+  }
 }
 
 const getInformationList = () => {

--
Gitblit v1.9.3