Browse Source

完善一下加载loading

redesign
zhangyuan 5 years ago
parent
commit
1d66fb4d61
  1. 6
      src/views/modules/honest/newshonest-add-or-update.vue

6
src/views/modules/honest/newshonest-add-or-update.vue

@ -378,6 +378,7 @@ export default {
}, },
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
this.loading = true
this.dataForm.newsProperty = this.$refs.newsCateroryName.selectedLabel this.dataForm.newsProperty = this.$refs.newsCateroryName.selectedLabel
this.dataForm.newsColumn = this.$refs.newsSubCateroryName.selectedLabel this.dataForm.newsColumn = this.$refs.newsSubCateroryName.selectedLabel
this.dataForm.newsApprovalState = '0' this.dataForm.newsApprovalState = '0'
@ -403,7 +404,10 @@ export default {
this.dataForm = {} this.dataForm = {}
} }
}) })
}).catch(() => { }) this.loading = false
}).catch(() => {
this.loading = false
})
}) })
}, 1000, { 'leading': true, 'trailing': false }) }, 1000, { 'leading': true, 'trailing': false })
}, },

Loading…
Cancel
Save