import {defineStore} from 'pinia' const menuStore = defineStore('ioc-menu', { state: () => ( { currMenu: {}, commonFunction: [ { "name": "智慧餐厅", "router": "/life/restaurant", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "智慧停车", "router": "/life/parking", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "无人商超", "router": "/life/supermarket", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "健康小屋", "router": "/life/healthyHome", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "双碳概览", "router": "/doubleCarbon/overview", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "车辆排放", "router": "/doubleCarbon/car", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "文印排放", "router": "/doubleCarbon/print", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" }, { "name": "光伏发电", "router": "/doubleCarbon/pv", "icon": "", "iconColor": "functionColor/life/iocRestaurant.png" } ], } ), getters: {}, actions: {}, }) const userStore = defineStore('ioc-user', { state: () => ({ userInfo: {}, token: '', }), getters: { userToken: state => state.token, userInfo: state => state.userInfo, }, actions: {}, }) export default { menuStore, userStore, }