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

vue3引入vconsole后页面空白 #687

Open
YuYongzhi opened this issue Jul 4, 2024 · 0 comments
Open

vue3引入vconsole后页面空白 #687

YuYongzhi opened this issue Jul 4, 2024 · 0 comments

Comments

@YuYongzhi
Copy link

Chrome浏览器创建Emulated Devices,
image
其中,User agent string是:
Mozilla/5.0 (Linux; Android 4.4.4; HM NOTE 1LTEW Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 MicroMessenger/6.0.0.54_r849063.501 NetType/WIFI

在项目的main.js中引入vconsole,
方式一:
const VConsoleModule = await import('vconsole');
new VConsoleModule.default();

方式二:
import vconsole from 'vconsole';
new vconsole();

不管哪种方式引用,在命令行都会报错
image

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