Browse Source

取消 正式环境的debug按钮

master
JinxChen 1 year ago
parent
commit
ff1755bb1b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/App.vue

+ 2
- 2
src/App.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2022-01-19 10:08:26 * @Date: 2022-01-19 10:08:26
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-04-06 10:20:06
* @LastEditTime: 2023-04-06 10:30:46
* @FilePath: \TelpoH5FrontendWeb\src\App.vue * @FilePath: \TelpoH5FrontendWeb\src\App.vue
* @description: * @description:
--> -->
@@ -37,7 +37,7 @@ export default {
}); });
}, },
debug() { debug() {
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') {
if (process.env.NODE_ENV !== 'production') {
const script = document.createElement('script'); const script = document.createElement('script');
script.src = "//cdn.jsdelivr.net/npm/eruda"; script.src = "//cdn.jsdelivr.net/npm/eruda";
document.body.appendChild(script); document.body.appendChild(script);


Loading…
Cancel
Save