保存进度!
This commit is contained in:
@@ -2,15 +2,16 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-12-14 15:12:46
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-01-05 21:38:13
|
||||
* @LastEditTime: 2023-01-06 16:44:57
|
||||
* @FilePath: \admin_system\src\router\index.js
|
||||
* @Description:
|
||||
* @Description: 定义应用路由配置
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
import { createRouter, createWebHashHistory } from 'vue-router';
|
||||
|
||||
const routes = [
|
||||
//框架路由
|
||||
{
|
||||
path: "/",
|
||||
name: "Root",
|
||||
@@ -26,22 +27,32 @@ const routes = [
|
||||
{
|
||||
path: "/home",
|
||||
name: "Home",
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: "控制台"
|
||||
},
|
||||
component: () => import("../layout/Index.vue"),
|
||||
},
|
||||
//侧边导航栏路由
|
||||
{ //首页
|
||||
path: "/console",
|
||||
name: "Console",
|
||||
meta: {
|
||||
title: "总览"
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/console",
|
||||
name: "Console",
|
||||
mate: {
|
||||
title: "首页"
|
||||
path: "/desktop",
|
||||
name: "DeskTop",
|
||||
meta: {
|
||||
title: "工作台"
|
||||
},
|
||||
component: () => import("../layout/Index.vue"),
|
||||
component: () => import("../views/overview/OverView.vue"),
|
||||
},
|
||||
],
|
||||
component: () => import("../layout/Index.vue"),
|
||||
},
|
||||
{
|
||||
{//信息管理
|
||||
path: "/news",
|
||||
name: "News",
|
||||
meta: {
|
||||
@@ -51,10 +62,18 @@ const routes = [
|
||||
{
|
||||
path: "/newsIndex",
|
||||
name: "NewsIndex",
|
||||
mate: {
|
||||
meta: {
|
||||
title: "信息列表"
|
||||
},
|
||||
component: () => import("../layout/Index.vue"),
|
||||
component: () => import("../views/news/News.vue"),
|
||||
},
|
||||
{
|
||||
path: "/newsIndex",
|
||||
name: "NewsIndex",
|
||||
meta: {
|
||||
title: "信息编辑"
|
||||
},
|
||||
component: () => import("../views/news/News.vue"),
|
||||
},
|
||||
],
|
||||
component: () => import("../layout/Index.vue"),
|
||||
|
||||
Reference in New Issue
Block a user