diff --git a/src/main.js b/src/main.js index 5630ee7..c9df78f 100644 --- a/src/main.js +++ b/src/main.js @@ -23,8 +23,13 @@ * it will intercept your request, so you won't see the request in the network. * If you remove `../mock` it will automatically request easy-mock data. */ +// if (process.env.NODE_ENV === 'development') { // import './../mock' // simulation data // require('./../mock') +// } else { +// console.log('生产环境') +// } + // 兼容IE11 import 'babel-polyfill' @@ -61,6 +66,15 @@ import VCharts from 'v-charts' Vue.use(VCharts) +// js禁止浏览器的回退快捷键 +history.pushState(null, null, document.URL) +window.addEventListener('popstate', function() { + history.pushState(null, null, document.URL) +}) +// 引入区域级联选项 +import vRegion from 'v-region' +Vue.use(vRegion, {}) + new Vue({ el: '#app', router,