使用 Ant Design Vue 框架,在调用 Modal 组件时报错:
[Vue warn]: Failed to resolve directive: ant-portal (found in <Anonymous>)
解决方法:
注册 Modal 的时候,将:
Vue.component(Modal.name: Modal)
改为:
Vue.use(Modal)
未经允许不得转载:w3h5 » Ant Design Vue报错:Failed to resolve directive: ant-portal的问题解决
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/228497.html