diff --git a/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java b/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java index 1f829708fd..b4b54d7550 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/FileUtils.java @@ -4,17 +4,9 @@ import io.metersphere.commons.exception.MSException; import io.metersphere.i18n.Translator; import org.apache.commons.collections.CollectionUtils; import org.aspectj.util.FileUtil; -import org.springframework.core.io.FileSystemResource; -import org.springframework.http.HttpHeaders; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; import org.springframework.web.multipart.MultipartFile; -import javax.servlet.ServletOutputStream; -import javax.servlet.http.HttpServletResponse; import java.io.*; -import java.net.URLEncoder; -import java.util.Date; import java.util.List; public class FileUtils { diff --git a/frontend/src/business/components/track/common/minder/minderUtils.js b/frontend/src/business/components/track/common/minder/minderUtils.js index 95c196a138..80d9195b8b 100644 --- a/frontend/src/business/components/track/common/minder/minderUtils.js +++ b/frontend/src/business/components/track/common/minder/minderUtils.js @@ -53,6 +53,23 @@ export function parseCase(item, dataMap, isDisable, setParamCallback) { return nodeItem; } +function _parseChildren(children, k, v, isDisable) { + if (k) { + let node = { + data: { + text: k, + resource: v ? [v] : [] + }, + children: [] + } + if (isDisable) { + node.data.disable = true; + } + children.push(node); + return node; + } +} + function parseChildren(nodeItem, item, isDisable) { nodeItem.children = []; let children = []; @@ -79,23 +96,6 @@ function parseChildren(nodeItem, item, isDisable) { nodeItem.children = children; } -function _parseChildren(children, k, v, isDisable) { - if (k) { - let node = { - data: { - text: k, - resource: v ? [v] : [] - }, - children: [] - } - if (isDisable) { - node.data.disable = true; - } - children.push(node); - return node; - } -} - export function listenNodeSelected(callback) { let minder = window.minder; minder.on('selectionchange ', function (even) {