|
|
@@ -17,54 +17,54 @@ watch(
|
|
|
}
|
|
|
)
|
|
|
const getMenuList = () => {
|
|
|
- // $api.getMenuList().then((res) => {
|
|
|
- // if (res.code === 200) {
|
|
|
- // menuList.value = res.data
|
|
|
- // }
|
|
|
- // })
|
|
|
- menuList.value = [
|
|
|
- {
|
|
|
- index: '1',
|
|
|
- label: 'Dashboard',
|
|
|
- icon: 'icon_data_fill_b',
|
|
|
- path: '/dashboard'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '2',
|
|
|
- label: 'Booking',
|
|
|
- icon: 'icon_booking__fill_b',
|
|
|
- path: '/booking'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '3',
|
|
|
- label: 'Tracking',
|
|
|
- icon: 'icon_tracking__fill_b',
|
|
|
- path: '/tracking'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4',
|
|
|
- label: 'System Management',
|
|
|
- icon: 'icon_system__management_fill_b',
|
|
|
- type: 'list',
|
|
|
- children: [
|
|
|
- {
|
|
|
- index: '4-1',
|
|
|
- label: 'System Message',
|
|
|
- path: '/system-message'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-2',
|
|
|
- label: 'System Settings',
|
|
|
- path: '/SystemSettings'
|
|
|
- },
|
|
|
- {
|
|
|
- index: '4-3',
|
|
|
- label: 'Operation Log',
|
|
|
- path: '/Operationlog'
|
|
|
- }
|
|
|
- ]
|
|
|
+ $api.getMenuList().then((res) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ menuList.value = res.data
|
|
|
}
|
|
|
- ]
|
|
|
+ })
|
|
|
+ // menuList.value = [
|
|
|
+ // {
|
|
|
+ // index: '1',
|
|
|
+ // label: 'Dashboard',
|
|
|
+ // icon: 'icon_data_fill_b',
|
|
|
+ // path: '/dashboard'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // index: '2',
|
|
|
+ // label: 'Booking',
|
|
|
+ // icon: 'icon_booking__fill_b',
|
|
|
+ // path: '/booking'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // index: '3',
|
|
|
+ // label: 'Tracking',
|
|
|
+ // icon: 'icon_tracking__fill_b',
|
|
|
+ // path: '/tracking'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // index: '4',
|
|
|
+ // label: 'System Management',
|
|
|
+ // icon: 'icon_system__management_fill_b',
|
|
|
+ // type: 'list',
|
|
|
+ // children: [
|
|
|
+ // {
|
|
|
+ // index: '4-1',
|
|
|
+ // label: 'System Message',
|
|
|
+ // path: '/system-message'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // index: '4-2',
|
|
|
+ // label: 'System Settings',
|
|
|
+ // path: '/SystemSettings'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // index: '4-3',
|
|
|
+ // label: 'Operation Log',
|
|
|
+ // path: '/Operationlog'
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
}
|
|
|
getMenuList()
|
|
|
//监听窗口大小
|