From 07317dfd4ba3af0b2e58daec9ea0c776ac3181ec Mon Sep 17 00:00:00 2001
From: rjg <746338628@qq.com>
Date: Tue, 03 Jun 2025 16:11:27 +0800
Subject: [PATCH] Merge branch 'feature_0.2_add_expire_num' into test
---
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