fix: 使用服务器绑定地址生成本地访问 URL
- 通过 127.0.0.1 打开 Tasks,避免受到 localhost 旧 Service Worker 和缓存影响 - 更新 Windows 开发服务器文档,使其与实际生成的访问地址一致
This commit is contained in:
@@ -51,7 +51,7 @@ npm start
|
|||||||
|
|
||||||
#### Windows 开发服务器脚本
|
#### Windows 开发服务器脚本
|
||||||
|
|
||||||
Windows 用户可以使用项目根目录下的 `serve.py` 控制本地开发服务器。服务器默认在 `http://localhost:8000/` 提供 `src` 中的静态文件。
|
Windows 用户可以使用项目根目录下的 `serve.py` 控制本地开发服务器。服务器默认在 `http://127.0.0.1:8000/` 提供 `src` 中的静态文件,并在启动成功后自动使用默认浏览器打开。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 启动服务器
|
# 启动服务器
|
||||||
|
|||||||
Reference in New Issue
Block a user