产品库升级,不用再改加载路径了

This commit is contained in:
aixianling
2022-03-09 11:58:28 +08:00
parent 93b1a3a69d
commit 7940cffc3c
5 changed files with 19 additions and 36 deletions

View File

@@ -7,12 +7,16 @@
<script>
import {mapState} from "vuex";
export default {
name: "appEntry",
label: "应用库-应用",
computed: {
...mapState(['apps']),
app() {
return this.$route.name
let app = this.apps.find(e => e.name == this.$route.name)
return app ? app.module : ""
}
}
}