diff --git a/.env.development b/.env.development
index 9a5e003..db461ce 100644
--- a/.env.development
+++ b/.env.development
@@ -2,10 +2,10 @@
ENV = development
# 本地环境接口地址
-VITE_API_URL = http://123.60.153.169:8040/apih5
+# VITE_API_URL = http://123.60.153.169:8040/apih5
# VITE_API_URL = http://4155gf93ll13.vicp.fun/apih5
# VITE_API_URL = http://123.60.79.143:8041/apih5
# VITE_API_URL =http://localhost:8040/apih5
-# VITE_API_URL = https://cankao.cs.com.cn/apih5
+VITE_API_URL = https://cankao.cs.com.cn/apih5
VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav
\ No newline at end of file
diff --git a/src/pages/realtimeInfo/pc/rank.vue b/src/pages/realtimeInfo/pc/rank.vue
index ba380bd..282e3a7 100644
--- a/src/pages/realtimeInfo/pc/rank.vue
+++ b/src/pages/realtimeInfo/pc/rank.vue
@@ -8,7 +8,7 @@
编辑精选
@@ -37,7 +37,8 @@
{{ item.source }}
{{
dayjs(item.publish_time).format("YYYY-MM-DD HH:MM:ss") }}
- {{ item.time }}
+ {{
+ formatTime(item.time) }}
{{ item.news_score }}
@@ -83,6 +84,19 @@ const router = useRouter();
const pageType = ref(route.query.type);
const newsList = ref([]);
+function formatTime(timestamp) {
+ const date = new Date(Number(timestamp).toString().length === 10 ? timestamp * 1000 : timestamp);
+ return [
+ date.getFullYear(),
+ (date.getMonth() + 1).toString().padStart(2, '0'),
+ date.getDate().toString().padStart(2, '0')
+ ].join('-') + ' ' + [
+ date.getHours().toString().padStart(2, '0'),
+ date.getMinutes().toString().padStart(2, '0'),
+ date.getSeconds().toString().padStart(2, '0')
+ ].join(':');
+}
+
async function getNewsList() {
if (pageType.value == 4) {
// 编辑精选