Commit bae698c9 authored by Pan's avatar Pan

update vue-loader

parent f7aee3b5
module.exports = file => require('@/views/' + file + '.vue')
module.exports = file => require('@/views/' + file + '.vue').default
import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow.so only in production use Lazy Loading
// in development env not use Lazy Loading,because Lazy Loading too many pages will cause webpack hot update too slow.so only in production use Lazy Loading
Vue.use(Router)
......
......@@ -23,7 +23,6 @@ export default {
])
},
created() {
console.log(this.roles)
if (this.roles.indexOf('admin') >= 0) {
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment