|  |  |  | 
|---|
|  |  |  | Vue.prototype.$systemconfig = { | 
|---|
|  |  |  | // 服务端路径 | 
|---|
|  |  |  | basePath: 'http://183.196.93.178:8089', | 
|---|
|  |  |  | //basePath:'http://127.0.0.1:8089' | 
|---|
|  |  |  | // basePath:'http://192.168.0.40:8089' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Vue.prototype.$byutil = byUtils | 
|---|
|  |  |  | Vue.prototype.$stringUtil = StringUtil | 
|---|
|  |  |  | Vue.prototype.$tscPrintUtil = TscPrintUtil | 
|---|
|  |  |  | // const rolesList = JSON.parse(localStorage.getItem('userRouters')) | 
|---|
|  |  |  | //使用钩子函数对路由进行权限跳转 | 
|---|
|  |  |  | // router.beforeEach((to, from, next) => { | 
|---|
|  |  |  | //     let user = byUtils.getUser() | 
|---|
|  |  |  | //     if (!user && to.path!== '/') { | 
|---|
|  |  |  | //         next('/'); | 
|---|
|  |  |  | //     } | 
|---|
|  |  |  | router.beforeEach((to,from,next) => { | 
|---|
|  |  |  | if(to.meta.title === '峰峰矿区智慧停车') { | 
|---|
|  |  |  | document.title = to.meta.title | 
|---|
|  |  |  | } | 
|---|
|  |  |  | next(); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    console.log(to,"触发了",router.options.routes); | 
|---|
|  |  |  | //    // type 2 : all admin | 
|---|