[update 全局翻译] 导入导出提示
This commit is contained in:
+2
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user