背景图片请求两次
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
显示背景图在画布中时,背景图片请求了两次
### 重现链接
https://codesandbox.io/s/bei-jing-tu-jia-zai-2ci-forked-o5orzo
### 重现步骤
1.进入页面
2.打开开发者工具,选择图片选项
3.刷新页面
4.查看背景图片的请求数量
### 预期行为
期望图片请求一次
### 平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- X6 版本: [1.28.2 ... ]
### 屏幕截图或视频(可选)
https://user-images.githubusercontent.com/42988574/169189652-6ac5246f-1182-4783-9cda-2c12d1d10394.mp4
### 补充说明(可选)
_No response_
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and inspect the browser developer tools' Network panel while following the listed refresh steps. Trace the background-image rendering path in the TypeScript project; done means the reproduced background image generates only one request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100