|
@@ -43,34 +43,6 @@ const actions = {
|
|
|
*/
|
|
|
async setAllRoutes({ commit }) {
|
|
|
let { data } = await getRouterList()
|
|
|
- // let data = [
|
|
|
- // {
|
|
|
- // path: 'external-link',
|
|
|
- // component: "Layout",
|
|
|
- // children: [{
|
|
|
- // path: '/home',
|
|
|
- // meta: { title: '首页', icon: 'home', }
|
|
|
- // }]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/',
|
|
|
- // redirect: '/alarmManage/index',
|
|
|
- // meta: {
|
|
|
- // title: '告警管理',
|
|
|
- // icon: 'alarmManage',
|
|
|
- // affix: true,
|
|
|
- // },
|
|
|
- // component: "Layout",
|
|
|
- // children: [{
|
|
|
- // meta: {
|
|
|
- // title: '告警管理',
|
|
|
- // icon: 'alarmManage',
|
|
|
- // },
|
|
|
- // path: '/alarmManage/index',
|
|
|
- // component: '@/views/alarmManage/index',
|
|
|
- // },]
|
|
|
- // }
|
|
|
- // ]
|
|
|
|
|
|
if (data[data.length - 1].path !== '*')
|
|
|
data.push({ path: '/*', redirect: '/404', hidden: true })
|