update management structure
This commit is contained in:
@@ -6,7 +6,11 @@ import news from "@/components/hotNews/HotNews.vue";
|
||||
import navDetail from "@/components/detail/NavDetail.vue";
|
||||
import notFound from "@/components/notFound/NotFound.vue";
|
||||
import settings from "@/views/Settings.vue";
|
||||
import settingsHome from "@/components/setting/layout/SettingPage.vue";
|
||||
import appearanceSettings from "@/components/setting/system/AppearanceSettings.vue";
|
||||
import informationSettings from "@/components/setting/system/InformationSettings.vue";
|
||||
import functionSettings from "@/components/setting/system/FunctionSettings.vue";
|
||||
import systemSettings from "@/components/setting/system/SystemSettings.vue";
|
||||
import websiteManage from "@/components/setting/website/websiteManage.vue";
|
||||
const originalPush = VueRouter.prototype.push
|
||||
VueRouter.prototype.push = function push(location) {
|
||||
return originalPush.call(this, location).catch(err => err)
|
||||
@@ -42,15 +46,39 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: '/settings',
|
||||
redirect: '/admin',
|
||||
redirect: '/system',
|
||||
name: 'settings',
|
||||
component: settings,
|
||||
children: [
|
||||
{
|
||||
path: '/admin',
|
||||
name: 'admin',
|
||||
component: settingsHome
|
||||
path: '/system',
|
||||
name: '/system',
|
||||
redirect: '/appearance',
|
||||
component: systemSettings,
|
||||
children:[
|
||||
{
|
||||
path: '/appearance',
|
||||
name: '/appearance',
|
||||
component: appearanceSettings
|
||||
},
|
||||
{
|
||||
path: '/information',
|
||||
name: '/information',
|
||||
component: informationSettings
|
||||
},
|
||||
{
|
||||
path: '/function',
|
||||
name: '/function',
|
||||
component: functionSettings
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/website',
|
||||
name: '/website',
|
||||
component: websiteManage
|
||||
}
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user