lipengtao vor 6 Jahren
Ursprung
Commit
7779b93d8a
2 geänderte Dateien mit 102 neuen und 12 gelöschten Zeilen
  1. 5 0
      src/main.js
  2. 97 12
      src/router/index.js

+ 5 - 0
src/main.js

@ -16,6 +16,11 @@ import store from './store'
16 16
import '@/icons' // icon
17 17
import '@/permission' // permission control
18 18
19
import '../static/ueditor/ueditor.config.js'
20
import '../static/ueditor/ueditor.all.js'
21
import '../static/ueditor/lang/zh-cn/zh-cn.js'
22
import '../static/ueditor/ueditor.parse.js'
23
19 24
Vue.use(ElementUI)
20 25
21 26
Vue.config.productionTip = false

+ 97 - 12
src/router/index.js

@ -43,27 +43,59 @@ export const constantRouterMap = [
43 43
  {
44 44
    path: '',
45 45
    component: Layout,
46
    name: 'content',
46
    name: 'contentModule',
47 47
    redirect: 'noredirect',
48 48
    meta: { title: '内容发布' },
49 49
    children: [
50 50
      {
51
        path: 'pubList',
52
        component: () => import('@/views/contentPub/pubList'),
53
        name: 'pubList',
54
        meta: { title: '内容发布列表' }
51
        path: 'content',
52
        component: () => import('@/views/contentPub/index'),
53
        name: 'content',
54
        redirect: '/content/pubList',
55
        meta: { title: '内容发布列表' },
56
        children: [
57
          {
58
            path: 'pubList',
59
            component: () => import('@/views/contentPub/pubList'),
60
            name: 'pubList',
61
            meta: { title: '内容发布列表' }
62
          },
63
          {
64
            path: 'publish',
65
            hidden: true,
66
            component: () => import('@/views/contentPub/publish'),
67
            name: 'publish',
68
            meta: { title: ' 新内容发布' }
69
          }
70
        ]
71
      },
72
      {
73
        path: 'recycle',
74
        component: () => import('@/views/contentPub/index'),
75
        name: 'recycle',
76
        redirect: '/recycle/recycleBinList',
77
        meta: { title: '内容回收站列表' },
78
        children: [
79
          {
80
            path: 'recycleBinList',
81
            component: () => import('@/views/contentPub/recycleBin'),
82
            name: 'recycleBinList',
83
            meta: { title: '内容回收站列表' }
84
          },
85
          {
86
            path: 'viewRecycling',
87
            hidden: true,
88
            component: () => import('@/views/contentPub/viewRecyclingBins'),
89
            name: 'viewRecycling',
90
            meta: { title: ' 查看回收内容' }
91
          }
92
        ]
55 93
      },
56 94
      {
57 95
        path: 'draftList',
58 96
        component: () => import('@/views/contentPub/draftList'),
59 97
        name: 'draftList',
60 98
        meta: { title: '内容草稿箱列表' }
61
           meta: { title: '内容发布列表' },
62
      {
63
        path: 'recycleBin',
64
        component: () => import('@/views/contentPub/recycleBin'),
65
        name: 'recycleBin',
66
        meta: { title: '内容回收站列表' }
67 99
      }
68 100
    ]
69 101
  },
@ -100,6 +132,38 @@ export const constantRouterMap = [
100 132
      }
101 133
    ]
102 134
  },
135
  {
136
    path: '',
137
    component: Layout,
138
    name: 'specialExperts',
139
    redirect: 'noredirect',
140
    alwaysShow: true,
141
    meta: { title: '特约专家' },
142
    children: [
143
      {
144
        path: 'expertslist',
145
        component: () => import('@/views/specialExperts/index'),
146
        name: 'publishedList',
147
        meta: { title: '特约专家列表' }
148
      }
149
    ]
150
  },
151
  {
152
    path: '',
153
    component: Layout,
154
    name: 'cooperationAgency',
155
    redirect: 'noredirect',
156
    alwaysShow: true,
157
    meta: { title: '合作机构' },
158
    children: [
159
      {
160
        path: 'agencylist',
161
        component: () => import('@/views/cooperationAgency/index'),
162
        name: 'publishedList',
163
        meta: { title: '合作机构管理列表' }
164
      }
165
    ]
166
  },
103 167
  {
104 168
    path: '',
105 169
    component: Layout,
@ -222,7 +286,28 @@ export const constantRouterMap = [
222 286
        meta: { title: '平台后台用户管理列表' }
223 287
      }
224 288
    ]
225
  }
289
  },
290
  {
291
    path: '',
292
    component: Layout,
293
    name: 'accountSettings',
294
    redirect: 'noredirect',
295
    meta: { title: '账户设置' },
296
    children: [
297
      {
298
        path: 'modifyInformation',
299
        component: () => import('@/views/accountSettings/modifyAccountInformation'),
300
        name: 'modifyInformation',
301
        meta: { title: '修改账户资料' }
302
      },
303
      {
304
        path: 'modifyPassword',
305
        component: () => import('@/views/accountSettings/modifyPassword'),
306
        name: 'modifyPassword',
307
        meta: { title: '修改密码' }
308
      }
309
    ]
310
  },
226 311
]
227 312
228 313
// 实例化vue的时候只挂载constantRouter