From db8e416fec0ab844026eb7bc91d9f59a457f4e6e Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 16 Jan 2024 17:41:30 +0800
Subject: [PATCH] 标签事件审核调整,优化
---
common/common.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/common/common.js b/common/common.js
index 8bcdec0..8429715 100644
--- a/common/common.js
+++ b/common/common.js
@@ -40,7 +40,7 @@
// 获取数据下标信息 (picker选择器数据回显)
export const getIndex = (arr, value, key, nameKey) => {
- if (key) {
+ if (!key) {
for (let i = 0, ii = arr.length; i < ii; i++) {
if (arr[i] == value) {
return i;
@@ -56,4 +56,13 @@
}
}
}
+}
+
+// 文件路径转字符串
+export const formattingUrls = (urls) => {
+ let arr = [];
+ for (let i of urls) {
+ arr.push(i.name);
+ }
+ return arr.join(",")
}
\ No newline at end of file
--
Gitblit v1.9.3