feature: 加载文件接口添加loading

This commit is contained in:
zyn
2023-12-13 17:18:23 +08:00
parent 9209131eaa
commit 039abb5565
+9 -1
View File
@@ -5,7 +5,14 @@ import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig'
import { getBusStandFileByAttId } from 'api/process'
let Base64 = require('js-base64').Base64;
import store from '@/store'
import { Loading } from "element-ui";
export default attId => {
const loading = Loading.service({
lock: true,
text: '正在加载文件',
spinner: 'el-icon-loading',
})
getBusStandFileByAttId({
attId
}).then(res => {
@@ -22,6 +29,7 @@ export default attId => {
}
}
}).catch(e => {
}).finally(() => {
loading.close()
})
}