Yi.Vue2.x.Vuetify/src/store/modules/home.js

(完整代码) 1KB

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 }

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。