Pārlūkot izejas kodu

修改 vconsole显示条件

test
chenJinxu pirms 11 mēnešiem
vecāks
revīzija
f2afc81652
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      package.json
  2. +1
    -1
      src/main.js

+ 1
- 1
package.json Parādīt failu

@@ -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 Parādīt failu

@@ -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();
}


Notiek ielāde…
Atcelt
Saglabāt