Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APP内嵌WebView中开发环境引入vConsole正常 但在生产环境下关闭vConsole 进入webview会导致webview重载 #703

Open
JZ-jiangzhi opened this issue Jan 22, 2025 · 0 comments

Comments

@JZ-jiangzhi
Copy link

vConsole Version:
^3.15.1

安卓APP
H5为 vue3+vite+ts 开发环境中 引入vConsole 来方便H5进行调试 一切正常 H5设置了环境变量 在 import.meta.env.MODE == "development" 环境下 new vconsole() 正式环境中不使用 结果在正式环境中 因为没有引入 vConsole 导致webview重载 后面在正式环境中引入 但不进行 new vconsole() 确保vconsole模块打进H5包中了 还是会导致重载 最后在正式环境 进行 new vconsole() 通过css display:none 让他在页面上不显示 才没有发生重载现象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant