Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swiper 图片传入本地图片 无法加载 #2442

Closed
dongshihao666 opened this issue Nov 16, 2023 · 3 comments
Closed

swiper 图片传入本地图片 无法加载 #2442

dongshihao666 opened this issue Nov 16, 2023 · 3 comments
Labels
wontfix This will not be worked on

Comments

@dongshihao666
Copy link

dongshihao666 commented Nov 16, 2023

tdesign-miniprogram 版本

1.2.4

重现链接

data: { imgList: [ './images/pic_1_1.png', './images/pic_1_1.png', './images/pic_1_1.png', './images/pic_1_1.png' ] },

重现步骤

传入本地图片无法加载 传入cdn图片就可以

期望结果

传入本地图片一样可以加载

实际结果

No response

基础库版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2023-11-30
  • 开发难度: 低
  • 参与人数: 1
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

👋 @dongshihao666,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added the question This is a question, not a bug label Nov 20, 2023
@anlyyao
Copy link
Collaborator

anlyyao commented Nov 20, 2023

@dongshihao666 小程序里面的二封过的image组件,使用相对地址时要格外注意,因为你传入的相对路径是相对二封组件不是相对原生image组件的,所以无法正确获取图片路径。这不是一个bug,但是我们这边可以优化处理一下,感谢反馈~

@anlyyao anlyyao added enhancement New feature or request easy 简单问题 and removed question This is a question, not a bug labels Nov 20, 2023
byq1213 added a commit to byq1213/tdesign-miniprogram that referenced this issue Dec 12, 2023
@anlyyao
Copy link
Collaborator

anlyyao commented Feb 20, 2024

@byq1213 @dongshihao666 #2493 ,目前来看只能做到/相对根路径,../、./ 等确实就没有办法了

@anlyyao anlyyao added wontfix This will not be worked on and removed enhancement New feature or request IssueShoot easy 简单问题 labels Mar 29, 2024
@anlyyao anlyyao closed this as completed Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants