Browse Source

修改 vconsole显示条件

test
chenJinxu 11 months ago
parent
commit
f2afc81652
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      package.json
  2. +1
    -1
      src/main.js

+ 1
- 1
package.json View File

@@ -9,7 +9,7 @@
"lint": "vue-cli-service lint",
"deps": "yarn upgrade-interactive --latest",
"dev": "vue-cli-service serve --mode development",
"test": "vue-cli-service serve --mode test",
"test": "vue-cli-service serve --mode testing",
"pro": "vue-cli-service serve --mode production"
},
"dependencies": {


+ 1
- 1
src/main.js View File

@@ -39,7 +39,7 @@ const isPc = () => {
return flag;
};
//如果不是生产环境并且不是pc设备那么就显示调试
if (process.env.NODE_ENV == 'test' && !isPc()) {
if (process.env.NODE_ENV != 'production' && !isPc()) {
// eslint-disable-next-line no-unused-vars
const vConsole = new VConsole();
}


Loading…
Cancel
Save