showLoading.js 339 B

123456789101112
  1. const showLoading = async function(args) {
  2. let defaultArgs = {
  3. type: 'global',
  4. text: '加载中',
  5. color: '#ffffff',
  6. backgroundImage: '',
  7. };
  8. args = Object.assign(defaultArgs, args);
  9. args.isShow = true;
  10. this.$store.dispatch('loading/actionGetLoading', args);
  11. };
  12. export default showLoading;