antd this.$confirm is not a function 在vue项目中从全局引入antd改为按需引入后报错 解决方法: 1 引入messageBox 插件 import {Modal} from ‘ant-design-vue’ 2 在vue 的原型对象上挂载confirm Vue.prototype.$confirm = Modal.confirm; ——————————————