src/router/index.js
@@ -81,6 +81,11 @@ let authCode = localStorage.getItem(window.location.href.split('#')[0] + 'AuthCode') // 判断系统是否在授权期限内 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) if (window.GLOB.licenseKey === key) { isauth = true } if (userId && isauth) { return (<item.component {...props}/>)