From 0c9a9ed7e7393df99bcadcf083df9e35727d92bb Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 21 Aug 2025 14:46:16 +0800
Subject: [PATCH] Merge branch 'feature/v5.0/5.0.4' of http://139.196.74.78:10010/r/drone/drone-web-manage into feature/v5.0/5.0.4

---
 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 325dcc5..57c3536 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -459,6 +459,16 @@
 	return `${url.substring(0, lastDotIndex)}_show${url.substring(lastDotIndex)}`
 }
 
+/**
+ * 获取正射路径
+ * @param url
+ * @returns {string}
+ */
+export const getzsShowImg = url => {
+	if (!url) return ''
+	const lastDotIndex = url.lastIndexOf('.')
+	return `${url.substring(0, lastDotIndex)}_show.jpeg`
+}
 // key驼峰转换为下划线
 export function camelToSnake (obj) {
   if (typeof obj !== 'object' || obj === null) {

--
Gitblit v1.9.3