Vue project, open the white screen with your own browser

the project uses vux components in many places in the vue-cli, project. When using the phone"s built-in browser to open it, it is found to be a white screen, which should be a mistake somewhere, but Wechat and other browsers such as google and uc can open it. After the study, it is found that as long as the vux component is introduced, the phone"s own browser will go white. Is there any way to solve this problem? Wait on the line!

Apr.01,2021

means that the version of webview that you bring with your browser is too low to parse many grammars. The solution is generally to introduce Polyfill .


Polyfill solves the problem.


import Polyfill , put it under import vue, above all components, and make sure to introduce priority


add a vconsole to debug. You can try to lower the version of vue


if it doesn't work after the introduction of Polyfill, then convert the js code.
babeljs.io

Menu