chore: 替换为commonDownloadExcel
This commit is contained in:
parent
4b98a143c7
commit
c8e01a70b6
@ -9,7 +9,7 @@ import { ExcelIcon, InBoxIcon } from '@vben/icons';
|
|||||||
import { Modal, Switch, Upload } from 'ant-design-vue';
|
import { Modal, Switch, Upload } from 'ant-design-vue';
|
||||||
|
|
||||||
import { downloadImportTemplate, userImportData } from '#/api/system/user';
|
import { downloadImportTemplate, userImportData } from '#/api/system/user';
|
||||||
import { downloadExcel } from '#/utils/file/download';
|
import { commonDownloadExcel } from '#/utils/file/download';
|
||||||
|
|
||||||
const emit = defineEmits<{ reload: [] }>();
|
const emit = defineEmits<{ reload: [] }>();
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ function handleCancel() {
|
|||||||
<span>允许导入xlsx, xls文件</span>
|
<span>允许导入xlsx, xls文件</span>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click="downloadExcel(downloadImportTemplate, '用户导入模板')"
|
@click="commonDownloadExcel(downloadImportTemplate, '用户导入模板')"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-[4px]">
|
<div class="flex items-center gap-[4px]">
|
||||||
<ExcelIcon />
|
<ExcelIcon />
|
||||||
|
Loading…
Reference in New Issue
Block a user