From e4c7bca105e64c047fbcd6bbb53ff5d32b0c5fd6 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 10 Jun 2025 14:19:29 +0800
Subject: [PATCH] feat:日历去掉今日

---
 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 978bddf..94137a6 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -120,6 +120,16 @@
   })
 }
 /**
+ * 获取缩略图路径
+ * @param url
+ * @returns {string}
+ */
+export const getSmallImg = url => {
+	if (!url) return ''
+	const lastDotIndex = url.lastIndexOf('.')
+	return `${url.substring(0, lastDotIndex)}_small${url.substring(lastDotIndex)}`
+}
+/**
  * 浏览器判断是否全屏
  */
 export const fullscreenEnable = () => {

--
Gitblit v1.9.3