How to set an in iview, you can download files

                {
                    title: "",
                    key: "action",
                    width: 250,
                    align: "center",
                    render: (h, params) => {
                        return h("div", [
                            h("a", {
                                props: {

                                },
                                style: {
                                    marginRight: "10px"
                                },
                                on: {
                                    click:()=>{
                                        const downLoad=params.row.filename;
                                    }
                                }
                            }, ""),
                        ]);
                    }
                }
                adownload
Mar.16,2021

just write the download file path on the href attribute


<a href='...' download ></a>

set the download property to specify the download file name in chrome and firefox download='xxx.png'

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a78e-2b57c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a78e-2b57c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?