|
@@ -45,7 +45,8 @@
|
|
</html>
|
|
</html>
|
|
<script>
|
|
<script>
|
|
// const debug = window.localStorage.getItem('H5_DEBUG');
|
|
// const debug = window.localStorage.getItem('H5_DEBUG');
|
|
- const debug = true;
|
|
|
|
|
|
+ // 开发环境和qa环境 打开debug
|
|
|
|
+ const debug = /dev-|qa-/.test(window?.injectConfig?.api) || window.location.href.indexOf(8080) > -1;
|
|
if (debug) {
|
|
if (debug) {
|
|
const script = document.createElement('script');
|
|
const script = document.createElement('script');
|
|
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js';
|
|
script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js';
|