页面加载loading

let thisContent = this;
let loading = thisContent.$loading({
        lock: true,
        text: '上传中,请稍候...',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.5)'
      })
// 中间进行一系列的操作
// 上传成功后关闭loading, 并显示上传成功
loading.close();
thisC.$message('上传文件成功');

 

 

 

          this.$nextTick(() => {
              //回显数据
          })

 

posted @ 2022-07-22 17:22  快了星球  阅读(115)  评论(0)    收藏  举报