perf: 下载标签默认为打开新窗口

This commit is contained in:
2023-07-22 14:06:27 +08:00
parent d77cdb09af
commit db2e8dd6d5

View File

@ -2,13 +2,13 @@
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-07-21 01:21:34
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-21 03:57:13
* @LastEditTime: 2023-07-22 12:46:07
* @FilePath: \vue3\packages\download-link\index.vue
* @Description: 现在组件
*
-->
<template>
<el-link v-loading="loading" :href="url" :type="type" :download="url && fileName" @click="download">
<el-link v-loading="loading" :href="url" :type="type" :download="url && fileName" target="_blank" @click="download">
<slot>
{{ fileName }}
</slot>