[update 全局翻译] 导入导出提示

This commit is contained in:
danshihao
2024-07-16 15:25:19 +08:00
parent f6c371e016
commit bd29582ef7
22 changed files with 115 additions and 84 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import Vue from 'vue'
import { axios } from '@/utils/request'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import signMd5Utils from '@/utils/encryption/signMd5Utils'
import i18n from '@/common/lang'
const api = {
user: '/mock/api/user',
@@ -153,7 +154,7 @@ export function postDownFile (url, parameter) {
export function downloadFile (url, fileName, parameter) {
return downFile(url, parameter).then((data) => {
if (!data || data.size === 0) {
Vue.prototype.$message.warning('文件下载失败')
Vue.prototype.$message.warning(i18n.t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {