فهرست منبع

feat: loading优化

cuiyalong 1 سال پیش
والد
کامیت
5f848552fc

+ 2 - 1
apps/mobile/src/composables/quick-monitor/component/QuickMonitor.vue

@@ -398,7 +398,8 @@ export default {
         }
         this.syncValue(true)
       } catch (error) {
-        loading.clear()
+        // loading.clear()
+        console.log(error)
       } finally {
         this.emitChange()
       }

+ 1 - 0
apps/mobile/src/views/article/components/ActionCollection.vue

@@ -80,6 +80,7 @@ export default {
           return
         }
       }
+      this.$toast.loading()
       this.$keep.action({
         status: this.value,
         id: this.id,

+ 4 - 0
apps/mobile/src/views/article/components/ActionInBidding.vue

@@ -226,6 +226,7 @@ export default {
       //     }
       //   })
       // }
+      const loading = this.$toast.loading()
       this.projectCellInfo.sid = this.id
       try {
         const {
@@ -243,10 +244,12 @@ export default {
           this.$toast(msg || '参标失败,请重试。')
         }
       } catch (e) {
+        // loading.clear()
         console.error(e)
       }
     },
     async cancelBidding() {
+      const loading = this.$toast.loading()
       this.projectCellInfo.sid = this.id
       try {
         const {
@@ -263,6 +266,7 @@ export default {
           this.$toast(msg || '终止参标失败,请重试。')
         }
       } catch (e) {
+        // loading.clear()
         console.error(e)
       }
     },