Skip to content
Snippets Groups Projects
Commit bae698c9 authored by Pan's avatar Pan
Browse files

update vue-loader

parent f7aee3b5
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@
"semver": "5.3.0",
"style-loader": "0.17.0",
"url-loader": "0.5.8",
"vue-loader": "12.2.1",
"vue-loader": "13.0.4",
"vue-style-loader": "3.0.1",
"vue-template-compiler": "2.4.2",
"webpack": "2.6.1",
......
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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment