| | |
| | | import tenantPackage from './views/system/tenantpackage'; |
| | | |
| | | |
| | | import Cookies from 'js-cookie' |
| | | // 携带token跳转页面设置 |
| | | |
| | | const tokenLength = window.location.href.indexOf('='); |
| | | if(tokenLength>0){ |
| | | //取“=”之后的token |
| | | let z = window.location.href.substring(tokenLength + 1) |
| | | // 把token存进B系统 |
| | | let obj = { |
| | | dataType: typeof (z), |
| | | content: z, |
| | | datetime: new Date().getTime() |
| | | } |
| | | window.localStorage.setItem('saber-token', JSON.stringify(obj)); |
| | | Cookies.set('saber-access-token', z) |
| | | } |
| | | |
| | | // 注册全局crud驱动 |
| | | window.$crudCommon = crudCommon; |
| | |
| | | |
| | | Vue.config.productionTip = false; |
| | | |
| | | //import Cookies from 'js-cookie' |
| | | // 携带token跳转页面设置 |
| | | |
| | | //const tokenLength = window.location.href.indexOf('='); |
| | | //if(tokenLength>0){ |
| | | // //取“=”之后的token |
| | | // let z = window.location.href.substring(tokenLength + 1) |
| | | // // 把token存进B系统 |
| | | // let obj = { |
| | | // dataType: typeof (z), |
| | | // content: z, |
| | | // datetime: new Date().getTime() |
| | | // } |
| | | // window.localStorage.setItem('saber-token', JSON.stringify(obj)); |
| | | // Cookies.set('saber-access-token', z) |
| | | //} |
| | | |
| | | new Vue({ |
| | | router, |
| | | store, |