Commit ba3aaa3e by 展昭

在测试和开发环境中添加vconsole

parent ecbd4fbe
Showing with 10 additions and 4 deletions
......@@ -10868,6 +10868,11 @@
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
"dev": true
},
"vconsole": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/vconsole/-/vconsole-3.3.4.tgz",
"integrity": "sha512-9yihsic96NPoMLQx/lCQwH9d89H0bbMW3LZPzo/t4yGQcS1X+vTCe9OHm1XSH7WNxzGDmcSwBiKLsFGwvJpQBg=="
},
"vendors": {
"version": "1.0.4",
"resolved": "https://registry.npm.taobao.org/vendors/download/vendors-1.0.4.tgz?cache=0&sync_timestamp=1579857106626&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvendors%2Fdownload%2Fvendors-1.0.4.tgz",
......
......@@ -19,6 +19,7 @@
"oidc-client": "^1.10.1",
"postcss-px2rem": "^0.3.0",
"vant": "^2.6.0",
"vconsole": "^3.3.4",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuex": "^3.1.3",
......
......@@ -53,10 +53,10 @@ Vue.prototype.setPageNavState = function () {
Vue.prototype.$bridge = bridge;
// if (process.env.NODE_ENV === 'development') {
// const VConsole = require('vconsole')
// const my_console = new VConsole();
// }
if (process.env.NODE_ENV === 'development'||process.env.NODE_ENV === 'staging') {
const VConsole = require('vconsole')
const my_console = new VConsole();
}
new Vue({
......
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 sign in to comment