From 4cf0b6d70e50ee02611e2c6d844b6133f1383241 Mon Sep 17 00:00:00 2001
From: xiaoxiao <2014227881@qq.com>
Date: Tue, 10 Jun 2025 22:39:16 +0800
Subject: [PATCH] 查询

---
 src/utils/util.js |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/utils/util.js b/src/utils/util.js
index 94137a6..8fe922e 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -438,3 +438,13 @@
   // 设置默认范围 [上个月, 当前月]
   return [new Date(lastMonthYear, lastMonth, 1), new Date(currentYear, currentMonth, 1)]
 }
+/**
+ * 获取中等缩略图路径
+ * @param url
+ * @returns {string}
+ */
+export const getShowImg = url => {
+	if (!url) return ''
+	const lastDotIndex = url.lastIndexOf('.')
+	return `${url.substring(0, lastDotIndex)}_show${url.substring(lastDotIndex)}`
+}
\ No newline at end of file

--
Gitblit v1.9.3