优化开发展示

This commit is contained in:
aixianling
2022-06-13 10:49:25 +08:00
parent 94ee820ace
commit 6e8b6b41df

View File

@@ -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"