Vue mobile terminal project realizes real machine debugging

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'
Please add a picture description

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.Please add a picture description

Guess you like

Origin blog.csdn.net/jiangjunyuan168/article/details/124707927