Commit 46f8ac51 by 姜雷

在图标组件中添加数据页面的store

parent 33734f98
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
import MenuItem from './components/MenuItem'; import MenuItem from './components/MenuItem';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { formatRouteLink, getMenuDataById } from '@/utils/route'; import { formatRouteLink, getMenuDataById } from '@/utils/route';
import store from '@/containers/Dashboard/store';
export default { export default {
name: 'IconMenus', name: 'IconMenus',
...@@ -88,6 +89,9 @@ export default { ...@@ -88,6 +89,9 @@ export default {
type: Function, type: Function,
}, },
}, },
created() {
store.install(this.$store);
},
data() { data() {
return { return {
collectRouteList: [], collectRouteList: [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment