Explorar o código

feat:下载提示

jinx %!s(int64=4) %!d(string=hai) anos
pai
achega
bc03febdc7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/pages/scene/index.vue

+ 2 - 1
src/pages/scene/index.vue

@@ -245,7 +245,7 @@ export default {
         },
       }).then((res) => {
         this.loading = false
-        this.downloadingVisible = true
+
         if (res.code === 200) {
           //链接存在时直接下载
           if (
@@ -260,6 +260,7 @@ export default {
           }
           //设置定时器实时获取下载链接的status和percent
           else if (res.message == 'success') {
+            this.downloadingVisible = true
             this.get_process = setInterval(() => {
               this.getProcess(row)
             }, 2000)