irpas技术客

Cannot read properties of undefined (reading ‘then‘)_PHP是宇宙中最好的语言

网络 3408

VUE报错,?Cannot read properties of undefined (reading 'then')

app.config.globalProperties.$mb = (type:any, message:string, title:string) => { ElMessageBox({ type, title, message, closeOnClickModal: true, closeOnPressEscape: true, callback: () => { } }); }; app.config.globalProperties.$mb = (type:any, message:string, title:string) => { return ElMessageBox({ type, title, message, closeOnClickModal: true, closeOnPressEscape: true, callback: () => { } }); };

加个return就OK了


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #Cannot #read #properties #of #undefined #reading #then #vue报错Cannot