In the vue mobile terminal project, we can better see the effect of the project actually running on the mobile terminal through real machine debugging.
Here's how to do it:
1. Connect the mobile phone and the computer to the same wifi
2. Modify the vue.config.js file configuration
Change the host path to '0.0.0.0'
3. Run the project
npm run serve
4. Mobile terminal debugging project
After running successfully, enter the Network address prompted in the console on the mobile browser to debug the project on the mobile phone.