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

剪切板包含图片路径上传后,如果返回的路径是相对路径,没有自动添加前缀 #1131

Open
jeefyang opened this issue Dec 4, 2021 · 0 comments

Comments

@jeefyang
Copy link

jeefyang commented Dec 4, 2021

描述问题

剪切板包含图片路径上传后,返回来的路径如果是相对路径,它插入image的元素的src中没有自动添加前缀,其他上传文件或者粘贴截图都可以,我看了代码的确是没有添加的
image
这边只是单纯把路径直接丢进去,没有判断是不是相对路径,是否需要添加前缀

期待的结果

我期待的是剪切板包含图片路径上传后,返回的数据都是经过普通上传的回调接口,不需要额外创建新接口来搞回调,这样做法能够统一管理上传,前缀问题也能够很好解决

版本信息

  • 版本:最新版本
  • 操作系统:win10
  • 浏览器:chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant