|
|
@@ -146,6 +146,25 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ {
|
|
|
+ path: "/qxs",
|
|
|
+ name: "qxs",
|
|
|
+ component: DEFAULT_LAYOUT,
|
|
|
+ meta: {
|
|
|
+ title: '趣选书',
|
|
|
+ icon: 'icon-book'
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'getBookList',
|
|
|
+ name: 'qxs.getBookList',
|
|
|
+ component: () => import('../pages/qxs/getBookList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '书单查询'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
path: "/service",
|
|
|
name: 'service',
|
|
|
@@ -183,25 +202,6 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- path: "/qxs",
|
|
|
- name: "qxs",
|
|
|
- component: DEFAULT_LAYOUT,
|
|
|
- meta: {
|
|
|
- title: '趣选书',
|
|
|
- icon: 'icon-book'
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'getBookList',
|
|
|
- name: 'qxs.getBookList',
|
|
|
- component: () => import('../pages/qxs/getBookList.vue'),
|
|
|
- meta: {
|
|
|
- title: '书单查询'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
{
|
|
|
path: "/download",
|
|
|
name: "download",
|
|
|
@@ -397,7 +397,7 @@ const router = VueRouter.createRouter({
|
|
|
routes: routes
|
|
|
})
|
|
|
|
|
|
-const allow = ['/', '/login', '/qxs/getBookList', '/htmlView/view']
|
|
|
+const allow = ['/', '/login', '/qxs/getBookList', '/htmlView/view', '/download/down']
|
|
|
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
if (!allow.includes(to.path)) {
|