From 56db0e077bb1e3f15e94f197cc6afb3af1b41a73 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 18 Sep 2020 11:14:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor(XPack):=20license=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=EF=BC=8C=E5=B9=B6=E5=AF=B9=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BF=9B=E8=A1=8C=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xmind/XmindToTestCaseParser.java | 2 +- frontend/src/business/App.vue | 36 +++++++++++++ .../components/settings/SettingMenu.vue | 53 ++++++++++--------- frontend/src/common/js/constants.js | 1 + frontend/src/common/js/utils.js | 16 ++++-- 5 files changed, 77 insertions(+), 31 deletions(-) diff --git a/backend/src/main/java/io/metersphere/xmind/XmindToTestCaseParser.java b/backend/src/main/java/io/metersphere/xmind/XmindToTestCaseParser.java index 135fe835f0..699948c904 100644 --- a/backend/src/main/java/io/metersphere/xmind/XmindToTestCaseParser.java +++ b/backend/src/main/java/io/metersphere/xmind/XmindToTestCaseParser.java @@ -55,7 +55,7 @@ public class XmindToTestCaseParser { // 递归处理案例数据 private void makeXmind(StringBuffer processBuffer, Attached parent, int level, String nodePath, List attacheds) { for (Attached item : attacheds) { - if (isBlack(item.getTitle(), "(?:tc|tc)")) { // 用例 + if (isBlack(item.getTitle(), "(?:tc:|tc:|tc)")) { // 用例 item.setParent(parent); this.newTestCase(item.getTitle(), parent.getPath(), item.getChildren() != null ? item.getChildren().getAttached() : null); } else { diff --git a/frontend/src/business/App.vue b/frontend/src/business/App.vue index 6f75a42fa0..1fb604f01a 100644 --- a/frontend/src/business/App.vue +++ b/frontend/src/business/App.vue @@ -1,5 +1,13 @@