<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
0 个回复