From 1f96f089eb3546c682313d29513be04ac72e2de5 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 31 十月 2023 16:21:08 +0800
Subject: [PATCH] Merge branch 'master' of ssh://114.215.109.124:29418/grid-management-vue

---
 src/model/clueQuestion.js |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/model/clueQuestion.js b/src/model/clueQuestion.js
new file mode 100644
index 0000000..87954a4
--- /dev/null
+++ b/src/model/clueQuestion.js
@@ -0,0 +1,16 @@
+import { imgUrl } from '@/api/index';
+
+function getClueQuestion(data) {
+  data.cqFilePath = data.cqFilePath.split(';').map((val) => {
+    return imgUrl + val;
+  });
+  return data;
+}
+
+function getClueQuestionList(dataList) {
+  return dataList.map((v) => {
+    return getClueQuestion(v);
+  });
+}
+
+export { getClueQuestion, getClueQuestionList };

--
Gitblit v1.9.3