Commit a660c6f3 authored by hewenhao's avatar hewenhao

feat: vconsole

parent 2fdba0a0
......@@ -9,6 +9,10 @@
<link rel="stylesheet" href="//at.alicdn.com/t/font_2425189_lvk0clvlo2.css">
<title><%= htmlWebpackPlugin.options.title %></title>
<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
<% if (String(VUE_APP_DEPLOY_MODE) === 'test') { %>
<script src="http://wechatfe.github.io/lib/vconsole/3.4.0/vconsole.min.js"></script>
<script>new window.VConsole({});</script>
<% } %>
<script>
(function flexible (window, document) {
var docEl = document.documentElement
......
......@@ -5,10 +5,10 @@ import router from "./router";
import store from "./store";
import "./assets/style/normalize.css";
if (process.env.VUE_APP_DEPLOY_MODE === "test") {
const VConsole = require("vconsole");
new VConsole();
}
// if (process.env.VUE_APP_DEPLOY_MODE === "test") {
// const VConsole = require("vconsole");
// new VConsole();
// }
createApp(App)
.use(store)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment