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

使用 Switch 动态控制 VConsole ,关闭后,再次展示后,console.log() log日志可以正常打印,NetWork 抓取不到网络请求了! #695

Open
sky-lijinbo opened this issue Nov 20, 2024 · 0 comments

Comments

@sky-lijinbo
Copy link

`let vCon = null

function onLogSwitchChange(e) {
	if (e?.detail?.value) {
		vCon = new VConsole()
	} else {
		if (vCon) {
			vCon.destroy()
			vCon = null
		}
	}
}`  我是这样使用的,不知道是使用方式不对,还是有问题
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