优化应用查询

This commit is contained in:
aixianling
2022-06-09 10:23:58 +08:00
parent 33e7932182
commit 55eb5a0760

View File

@@ -33,7 +33,7 @@ export default {
return decodeURIComponent(this.$route.query.back) || ""
},
currentApp() {
let path = this.target.replace(/(.+)[\\\/][^\\\/]+\?.*/, '$1')
let path = this.target.replace(/(.+)[\\\/][^\\\/]+\??.*/, '$1')
return this.apps.find(e => e.libPath.indexOf(path) > -1) || {}
},
appPath() {