优化开发展示

This commit is contained in:
aixianling
2022-06-13 10:48:23 +08:00
parent 3080718d95
commit 94ee820ace

View File

@@ -45,7 +45,7 @@ export default {
return (this.apps || []).filter(e => !this.searchApp || reg?.test(e.name) || reg?.test(e.label)).map(e => {
if (/project/.test(e.path)) {
e.project = e.path.replace(/.*project\/([^\/]+)\/.+/, '$1')
} else if (/core/.test(e.path)) {
} else if (/\/core\//.test(e.path)) {
e.project = "core"
}
return e