819527061@qq.com
2024-01-04 9d07a202adaffc970506a9fb2a3bec9589ff51c4
src/main.js
@@ -47,9 +47,7 @@
Vue.use(ViewUI);
Vue.config.productionTip = false
Vue.use(ElementUI, {
    size: 'small'
});
Vue.use(ElementUI);
import echarts from 'echarts'
Vue.prototype.$echarts = echarts;
@@ -78,13 +76,13 @@
// 配置文件
Vue.prototype.$systemconfig = {
// 服务端路径
    basePath: 'http://183.196.93.178:8089',
    //basePath:'http://127.0.0.1:8089'
    //basePath: 'http://183.196.93.178:8089',
    basePath:'http://127.0.0.1:8089'
}
Vue.prototype.$byutil = byUtils
Vue.prototype.$stringUtil = StringUtil
Vue.prototype.$tscPrintUtil = TscPrintUtil
// const rolesList = JSON.parse(localStorage.getItem('userRouters'))
// const rolesList = JSON.parse(localStorage.getItem('userRouters'))
//使用钩子函数对路由进行权限跳转
// router.beforeEach((to, from, next) => {
//     let user = byUtils.getUser()
@@ -95,9 +93,9 @@
//    console.log(to,"触发了",router.options.routes);
//    // type 2 : all admin
//    // type 0 :  泊车 id:2
//    // type 1 :  执法 id:3
//    // type 1 :  执法 id:3
//    next();
//         //