Vue.js devtools工具不显示问题

Vue.js is detected on this page.
Devtools inspection is not available because it's in production mode or explicitly disabled by the author.

网络上般说的问题原因:1、可能是在main.js里设置了Vue.config.devtools=false;

2、可能是用了vue.min.js,

但是如果两个的你都确定没有问题。

你需要打开index.html和Vue.config.js看一下,

在Vue.config.js中是不是有如下externals内容,它表示移除vue等这些js文件,那么项目怎么会运行呢,那就要打开index.html看一下了。

   configureWebpack: { //移除已从cdn引入的组件,不打包以下命名的内容
        externals: {
             'vue': 'Vue',
             'vue-router': 'VueRouter',
             'element-ui': 'ELEMENT',
             'echarts': 'echarts',
             'VueCookies': 'VueCookies',
        },
    },

原来它把package.json中引入的js都不用,而在index.html中用

好了现在问题找到了,我们在开发的时候,还是先把index.html中的

你可能感兴趣的:(euiadmin,vue.js,前端,javascript)