<scripttype="text/javascript"src="<%= BASE_URL %>vconsole.min.js"></script> <script> // VConsole will be exported to `window.VConsole` by default. var vConsole = newwindow.VConsole(); console.log('hello') </script>
终于看到报错信息了:**Uncaught ReferenceError: Plugin is not defined webpack-internal:///./src/request/axios.js 181 1 {}**。 翻到对应的请求代码段,发现**Plugin**没有提前进行声明!于是在开头加上了一行声明,问题解决。