kongdeqiang
2023-07-04 ddad19338c649987dbbf24a4c04fffd74f3eaef3
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;
@@ -84,7 +82,7 @@
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();
//         //