最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vue.js - Image route that is dynamically generated, not html content type - Stack Overflow

programmeradmin1浏览0评论

I have a Vue3 SPA that generates dashbaords and such. When I visit / it loads my app. I want to visit and have the response be a image/png media type with image data.

I want to create a route like this:

{ path: '/dynamic-img', component: () => import('components/DrawChart'), name: 'DrawChart' },

And when that component renders, it returns an image/png media type to client, that is the image.

Can this be done using vuejs? I understand there are ways to handle web page scraping to gather the images, but I'd like to do it directly from vue.

发布评论

评论列表(0)

  1. 暂无评论