perf: 下载标签默认为打开新窗口
This commit is contained in:
@ -2,13 +2,13 @@
|
|||||||
* @Author: zhaojinfeng 121016171@qq.com
|
* @Author: zhaojinfeng 121016171@qq.com
|
||||||
* @Date: 2023-07-21 01:21:34
|
* @Date: 2023-07-21 01:21:34
|
||||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
* @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
|
* @FilePath: \vue3\packages\download-link\index.vue
|
||||||
* @Description: 现在组件
|
* @Description: 现在组件
|
||||||
*
|
*
|
||||||
-->
|
-->
|
||||||
<template>
|
<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>
|
<slot>
|
||||||
{{ fileName }}
|
{{ fileName }}
|
||||||
</slot>
|
</slot>
|
||||||
|
Reference in New Issue
Block a user