其他分享
首页 > 其他分享> > 解决:TypeError: Cannot read properties of undefined (reading 'service')

解决:TypeError: Cannot read properties of undefined (reading 'service')

作者:互联网

vue 3.x 版本加载转圈圈实例有变更,按下面导入

import { ElLoading} from 'element-plus'

this.loadingInstance = ElLoading.service({
                target: '.main',
                text: '玩命加载中',
                background: 'rgba(0,0,0,0.5)'
            }

 

标签:ElLoading,vue,undefined,service,text,0.5,TypeError,加载
来源: https://www.cnblogs.com/tszr/p/16466986.html