mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-27 11:43:25 +08:00
重构优化框架
这是一个大版本的更新 现在,框架更加稳定
This commit is contained in:
56
Yi.Vue2.x/src/store/modules/home.js
Normal file
56
Yi.Vue2.x/src/store/modules/home.js
Normal file
@@ -0,0 +1,56 @@
|
||||
const state = {
|
||||
drawer: null,
|
||||
drawerImage: true,
|
||||
mini: false,
|
||||
items: [{
|
||||
title: 'Dashboard',
|
||||
icon: 'mdi-view-dashboard',
|
||||
to: '/',
|
||||
},
|
||||
{
|
||||
title: 'User Profile',
|
||||
icon: 'mdi-account',
|
||||
to: '/components/profile/',
|
||||
},
|
||||
{
|
||||
title: 'Regular Tables',
|
||||
icon: 'mdi-clipboard-outline',
|
||||
to: '/tables/regular/',
|
||||
},
|
||||
{
|
||||
title: 'Typography',
|
||||
icon: 'mdi-format-font',
|
||||
to: '/components/typography/',
|
||||
},
|
||||
{
|
||||
title: 'Icons',
|
||||
icon: 'mdi-chart-bubble',
|
||||
to: '/components/icons/',
|
||||
},
|
||||
{
|
||||
title: 'Google Maps',
|
||||
icon: 'mdi-map-marker',
|
||||
to: '/maps/google/',
|
||||
},
|
||||
{
|
||||
title: 'Notifications',
|
||||
icon: 'mdi-bell',
|
||||
to: '/components/notifications/',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
const mutations = { //变化//载荷
|
||||
SetDrawerImage(state, drawerImage) {
|
||||
state.drawerImage = drawerImage
|
||||
}
|
||||
}
|
||||
|
||||
//在action中可以配合axios进行权限判断
|
||||
const actions = { //动作
|
||||
|
||||
}
|
||||
const getters = {}
|
||||
|
||||
|
||||
export default { state, mutations, actions, getters }
|
||||
Reference in New Issue
Block a user