❤ A plugin must either be a function or an object with an “install“ function警告解决方法 问题描述 使用Vue3 遇到 [Vue warn]: A plugin must either be a function or an object with an "install" function. 原因分析: 提示:因为在router.js已经引用了路由,在main.js中又再次应用 解决 删除重复引用部分