store.dispatch then catch finally

Vue js hakkında herşey
Cevapla
abdulkadirlevent
Site Admin
Mesajlar: 24
Kayıt: Pzr Oca 19, 2020 4:27 pm

store.dispatch then catch finally

Mesaj gönderen abdulkadirlevent »

Kod: Tümünü seç

  this.$store.dispatch('load')
   .then(() => this.isBusy = false)
   .catch(() => this.error = "Failed to load data")
   .finally(() => this.isBusy = false);

Cevapla