Your Name 4 anni fa
parent
commit
7bbffb324d
2 ha cambiato i file con 59 aggiunte e 2 eliminazioni
  1. 44
    2
      src/router/index.js
  2. 15
    0
      src/views/home/index.vue

+ 44
- 2
src/router/index.js Vedi File

@@ -73,12 +73,54 @@ export const constantRoutes = [
73 73
     children: [
74 74
       {
75 75
         path: 'home',
76
-        component: () => import('@/views/dashboard/index'),
76
+        component: () => import('@/views/home/index'),
77 77
         name: 'Home',
78 78
         meta: { title: '首页', icon: 'dashboard', affix: true }
79 79
       }
80 80
     ]
81 81
   },
82
+  // {
83
+  //   path: '/documentation',
84
+  //   component: Layout,
85
+  //   children: [
86
+  //     {
87
+  //       path: 'index',
88
+  //       component: () => import('@/views/documentation/index'),
89
+  //       name: 'Documentation',
90
+  //       meta: { title: '文档', icon: 'documentation', affix: true }
91
+  //     }
92
+  //   ]
93
+  // },
94
+  // {
95
+  //   path: 'swagger',
96
+  //   component: Layout,
97
+  //   children: [
98
+  //     {
99
+  //       path: 'http://47.105.159.10:8888/api/swagger-ui.html',
100
+  //       meta: { title: 'SwaggerUI', icon: 'link' }
101
+  //     }
102
+  //   ]
103
+  // },
104
+  // {
105
+  //   path: 'knife4j',
106
+  //   component: Layout,
107
+  //   children: [
108
+  //     {
109
+  //       path: 'http://47.105.159.10:8888/api/doc.html',
110
+  //       meta: { title: 'SwaggerUI', icon: 'link' }
111
+  //     }
112
+  //   ]
113
+  // },
114
+  // {
115
+  //   path: 'spring-boot-admin',
116
+  //   component: Layout,
117
+  //   children: [
118
+  //     {
119
+  //       path: 'http://47.105.159.10:8000/instances/58c15acdd00c/details',
120
+  //       meta: { title: 'SpringBootAdmin', icon: 'link' }
121
+  //     }
122
+  //   ]
123
+  // },
82 124
   {
83 125
     path: '/profile',
84 126
     component: Layout,
@@ -178,7 +220,7 @@ export const asyncRoutes = [
178 220
         component: () => import('@/views/lottery/customer/customer-bill-list'),
179 221
         name: 'customerBillList',
180 222
         meta: { title: '财务管理', icon: 'edit' }
181
-      },
223
+      }
182 224
     ]
183 225
   },
184 226
   // 404 page must be placed at the end !!!

+ 15
- 0
src/views/home/index.vue Vedi File

@@ -0,0 +1,15 @@
1
+<template>
2
+  <div class="demo-home">
3
+    <h2>欢迎使用小牛后台管理系统</h2>
4
+  </div>
5
+</template>
6
+
7
+<style lang="scss" scoped>
8
+.demo-home {
9
+  padding: 200px;
10
+
11
+  h2 {
12
+    text-align: center;
13
+  }
14
+}
15
+</style>