king
2021-08-13 a13b2a8d6e84662275ea913850e01be9b2ff31e5
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}/>)