1.下载完成后关闭弹框2.点击菜单栏跳转加loading
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted, defineExpose, onBeforeUnmount, onUnmounted, defineEmits } from 'vue'
|
||||
import { getFileServiceFileOrDir, downLoadDeviceFile } from '@/api/cs-device-boot/fileService.ts'
|
||||
import { ElMessage } from 'element-plus'
|
||||
const dialogVisible = ref(false)
|
||||
const loading = ref(false)
|
||||
const downLoading = ref(false)
|
||||
@@ -68,6 +69,8 @@ const handleDownLoad = () => {
|
||||
if (res.code == 'A0000') {
|
||||
window.open(res.data, '_blank')
|
||||
downLoading.value = false
|
||||
ElMessage.success(res.message)
|
||||
handleClose()
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
|
||||
Reference in New Issue
Block a user