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

curd 表格预览,点击mp4文件打开新的tag #161

Open
hhw2444 opened this issue Apr 29, 2024 · 3 comments
Open

curd 表格预览,点击mp4文件打开新的tag #161

hhw2444 opened this issue Apr 29, 2024 · 3 comments

Comments

@hhw2444
Copy link

hhw2444 commented Apr 29, 2024

curd 表格预览,点击mp4文件打开新的tag

@hhw2444
Copy link
Author

hhw2444 commented Apr 29, 2024

mp4文件不生效

Copy link

dosubot bot commented Apr 29, 2024

To address the issue of mp4 files not opening in a new tab from the CRUD table preview, it seems the current implementation lacks specific handling for mp4 files or any logic to open files in a new tab. For mp4 files or similar types, you would typically use a method that checks the file's MIME type and then employs window.open(fileUrl, '_blank') to open the file in a new browser tab. This functionality needs to be explicitly added to your Vue component, as it's not covered by the existing code for handling file previews and downloads, which focuses more on displaying images and handling other file types without opening them in new tabs.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@zds-s
Copy link
Member

zds-s commented Apr 29, 2024

需要自己扩展,等 @kanyxmo 来看看有没有必要封装组件

@zds-s zds-s closed this as completed May 11, 2024
@zds-s zds-s reopened this May 11, 2024
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

2 participants