From 6e8b6b41df35def00500c090cd1f94634ba6d492 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Jun 2022 10:49:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=80=E5=8F=91=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/sliderNav.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/components/sliderNav.vue b/examples/components/sliderNav.vue index 5a0a9ff6..574265b7 100644 --- a/examples/components/sliderNav.vue +++ b/examples/components/sliderNav.vue @@ -43,7 +43,7 @@ export default { navs() { let reg = new RegExp(`.*${this.searchApp?.replace(/-/g,'')||''}.*`, 'gi') return (this.apps || []).filter(e => !this.searchApp || reg?.test(e.name) || reg?.test(e.label)).map(e => { - if (/project/.test(e.path)) { + if (/\/project\//.test(e.path)) { e.project = e.path.replace(/.*project\/([^\/]+)\/.+/, '$1') } else if (/\/core\//.test(e.path)) { e.project = "core"