Browse Source

正式环境增加 调试按钮

master
JinxChen 1 year ago
parent
commit
a115cf3b05
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
* @LastEditors: JinxChen
* @LastEditTime: 2023-03-30 18:29:20
* @LastEditTime: 2023-04-06 10:20:06
* @FilePath: \TelpoH5FrontendWeb\src\App.vue
* @description:
-->
@@ -37,7 +37,7 @@ export default {
});
},
debug() {
if (process.env.NODE_ENV !== 'production') {
if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') {
const script = document.createElement('script');
script.src = "//cdn.jsdelivr.net/npm/eruda";
document.body.appendChild(script);


Loading…
Cancel
Save