diff --git a/src/router/index.js b/src/router/index.js index cae9d3b..408bd6a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -59,39 +59,52 @@ const routes = [ redirect: '/admin', name: '/settings', component: settings, + meta:{Authorization:true}, children: [ { path: '/admin', name: '/admin', component: personalHomePage, + meta:{Authorization:true}, + }, { path: '/system', name: '/system', redirect: '/appearance', component: systemSettings, + meta:{Authorization:true}, + children:[ { path: '/appearance', name: '/appearance', - component: appearanceSettings + component: appearanceSettings, + meta:{Authorization:true}, + }, { path: '/information', name: '/information', - component: informationSettings + component: informationSettings, + meta:{Authorization:true}, + }, { path: '/function', name: '/function', - component: functionSettings + component: functionSettings, + meta:{Authorization:true}, + } ] }, { path: '/website', name: '/website', - component: websiteManage + component: websiteManage, + meta:{Authorization:true}, + }, { @@ -99,16 +112,22 @@ const routes = [ name: '/onSite', redirect:'/baseSettings', component: onSiteSetting, + meta:{Authorization:true}, + children:[ { path: '/baseSettings', name: '/baseSettings', - component: baseSettings + component: baseSettings, + meta:{Authorization:true}, + }, { path: '/importExport', name: '/importExport', - component: importExport + component: importExport, + meta:{Authorization:true}, + }, ] },