1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import {resultSuccess} from '../_util';
- import {ApiEnum} from "@/enums/apiEnum";
- const menusList = [
- {
- path: '/dashboard',
- name: 'Dashboard',
- component: 'LAYOUT',
- redirect: '/dashboard/console',
- meta: {
- icon: 'DashboardOutlined',
- title: 'Dashboard',
- },
- children: [
- {
- path: 'console',
- name: 'dashboard_console',
- component: '/dashboard/console/console',
- meta: {
- title: '主控台',
- },
- },
- {
- path: 'monitor',
- name: 'dashboard_monitor',
- component: '/dashboard/monitor/monitor',
- meta: {
- title: '监控页',
- },
- },
- {
- path: 'workplace',
- name: 'dashboard_workplace',
- component: '/dashboard/workplace/workplace',
- meta: {
- hidden: true,
- title: '工作台',
- },
- },
- ],
- },
- ];
- export default [
- {
- url: ApiEnum.RoleDynamic,
- timeout: 1000,
- method: 'get',
- response: () => {
- return resultSuccess(menusList);
- },
- },
- ];
|