style: 优化导入用户部分界面及接口路径

This commit is contained in:
2024-10-30 22:22:25 +08:00
parent 146637c59d
commit 881c7e720e
3 changed files with 20 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ import { Message, Notification } from '@arco-design/web-vue'
interface NavigatorWithMsSaveOrOpenBlob extends Navigator {
msSaveOrOpenBlob: (blob: Blob, fileName: string) => void
}
export const useDownload = async (api: () => Promise<any>, isNotify = true, tempName = '', fileType = '.xlsx') => {
export const useDownload = async (api: () => Promise<any>, isNotify = false, tempName = '', fileType = '.xlsx') => {
try {
const res = await api()
if (res.headers['content-disposition']) {