How to make the Vue project support http://localhost and http://192.168.XX access at the same time when running locally?

Method 1: Add --host 0.0.0.0 at the end of "scripts":→ "dev": in package.json

 Method 2: Change "dev":→ "host": of config\index.js to 0.0.0.0

Acho que você gosta

Origin blog.csdn.net/qq_37860634/article/details/131759760
Recomendado
Clasificación