kaleidosJohna
kaleidosJohna
  • 发布:2025-01-15 13:41
  • 更新:2025-01-15 13:41
  • 阅读:14

【uts】uvue引入uts函数在click事件中报错

分类:uni-app x
<html>  
    <zxg-goods-item :info="item" posterkey="poster" namekey="name" page="index" @click="toGoodsDetail({item})">  
</html>  
<script setup>  
    import {  
        toGoodsDetail,  
    } from "@/common/uts/method.uts"

报错:
11:49:47.891 [plugin:uni:app-uts] 编译失败
11:49:47.892 ‌error: Expression 'unref(toGoodsDetail)' of type 'Unit' cannot be invoked as a function. The function 'invoke()' is not found‌
11:49:47.892 at D:\HBuilderProjects\zxg-app-x\unpackage\cache.app-android\src\pages\tabbar\index.kt:179:41
11:49:47.892 ‌error: Function invocation 'toGoodsDetail(...)' expected‌
11:49:47.892 at D:\HBuilderProjects\zxg-app-x\unpackage\cache.app-android\src\pages\tabbar\index.kt:179:47
11:49:47.892 ‌error: No value passed for parameter 'ref1'‌
11:49:47.892 at D:\HBuilderProjects\zxg-app-x\unpackage\cache.app-android\src\pages\tabbar\index.kt:179:47
11:49:47.892 ‌error: Unresolved reference: utsMapOf‌
11:49:47.892 at D:\HBuilderProjects\zxg-app-x\unpackage\cache.app-android\src\pages\tabbar\index.kt:179:67

2025-01-15 13:41 负责人:无 分享
已邀请:

要回复问题请先登录注册