lori
lori
  • 发布:2023-01-11 23:05
  • 更新:2023-10-31 20:24
  • 阅读:223

微信小程序中,如果在组件中引用插件?

分类:uni-app

想在组件中,通过import的方式引用插件,比如

<template>  
    <yuta-push />  
</template>  

<script>  
import YutaPush from 'plugin://yuta-plugin/yuta-push'  
export default {  
components: { YutaPush },  
data() {  
        return {  
        }  
    },  
}  
}  
</script>

但现在这样是会编译失败的

请问有什么解决办法?

2023-01-11 23:05 负责人:无 分享
已邀请:
6***@qq.com

6***@qq.com

解决没有?

要回复问题请先登录注册