Vue3 + Vite + Ts: > Network: use `--host` to expose

 在  vite.config.ts  中加入下面语句:

 server: {				// ← ← ← ← ← ←
    host: '0.0.0.0'	// ← 新增内容 ←
  }	

猜你喜欢

转载自blog.csdn.net/A88552211/article/details/125715634