update vue-loader
This commit is contained in:
parent
f7aee3b5a3
commit
bae698c9ad
|
@ -76,7 +76,7 @@
|
||||||
"semver": "5.3.0",
|
"semver": "5.3.0",
|
||||||
"style-loader": "0.17.0",
|
"style-loader": "0.17.0",
|
||||||
"url-loader": "0.5.8",
|
"url-loader": "0.5.8",
|
||||||
"vue-loader": "12.2.1",
|
"vue-loader": "13.0.4",
|
||||||
"vue-style-loader": "3.0.1",
|
"vue-style-loader": "3.0.1",
|
||||||
"vue-template-compiler": "2.4.2",
|
"vue-template-compiler": "2.4.2",
|
||||||
"webpack": "2.6.1",
|
"webpack": "2.6.1",
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
module.exports = file => require('@/views/' + file + '.vue')
|
module.exports = file => require('@/views/' + file + '.vue').default
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
const _import = require('./_import_' + process.env.NODE_ENV)
|
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)
|
Vue.use(Router)
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ export default {
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(this.roles)
|
|
||||||
if (this.roles.indexOf('admin') >= 0) {
|
if (this.roles.indexOf('admin') >= 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue