[@vue/compiler-sfc] `defineEmits` is a compiler macro and no longer needs to be imported.

这个问题一般是你用vue导入了defineEmits

在这里插入图片描述
这样 运行时就会报错

在这里插入图片描述
这个函数 在vue环境中直接用就好了 是不需要引入的 将上面的代码去掉就好了

猜你喜欢

转载自blog.csdn.net/weixin_45966674/article/details/131123662