From 5046d0d13dc6a8563b8e54e31913bc44cfa1072f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 26 四月 2022 19:23:18 +0800 Subject: [PATCH] 2022-04-26 --- src/router/index.js | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 65d856c..444f1bb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -16,6 +16,7 @@ const AppCheck = asyncLoadComponent(() => import('@/views/appcheck')) const PCDesign = asyncLoadComponent(() => import('@/views/pcdesign')) const MobDesign = asyncLoadComponent(() => import('@/views/mobdesign')) +const ImDesign = asyncLoadComponent(() => import('@/views/imdesign')) const MenuDesign = asyncLoadComponent(() => import('@/views/menudesign')) const BillPrint = asyncLoadComponent(() => import('@/views/billprint')) const PrintT = asyncLoadComponent(() => import('@/views/printTemplate')) @@ -33,8 +34,11 @@ {path: '/appcheck', name: 'appcheck', component: AppCheck, auth: true}, {path: '/pcdesign/:param', name: 'pcdesign', component: PCDesign, auth: true}, {path: '/mobdesign/:param', name: 'mobdesign', component: MobDesign, auth: true}, + {path: '/imdesign/:param', name: 'imdesign', component: ImDesign, auth: true}, {path: '/menudesign/:param', name: 'menudesign', component: MenuDesign, auth: true}, {path: '/billprint/:param', name: 'billprint', component: BillPrint, auth: true}, + {path: '/docprint/:menuId', name: 'docprint', component: BillPrint, auth: false}, + {path: '/docprint/:menuId/:id', name: 'docprint', component: BillPrint, auth: false}, {path: '/paramsmain/:param', name: 'pmain', component: Main, auth: true}, {path: '/role/:param', name: 'role', component: RoleManage, auth: true}, {path: '/interface', name: 'interface', component: Interface, auth: true} @@ -84,8 +88,9 @@ let _s = md5('mksoft' + moment().format('YYYYMMDD')) let isauth = authCode && authCode.includes(_s) let key = md5(window.GLOB.appId + 'minke_software' + window.GLOB.appkey).toUpperCase().substr(-6) + let key1 = window.GLOB.licenseKey ? window.GLOB.licenseKey.substring(0, 6) : '' - if (window.GLOB.licenseKey === key) { + if (key1 === key) { isauth = true } -- Gitblit v1.8.0