用uni-ai-chat,调用await uni.getPushClientId() 报错如下:
{
"message": "client is not defined",
"stack": "ReferenceError: client is not defined\n at _callee2$ (webpack-internal:///qUu5:355:42)\n at tryCatch (http://localhost:8080/static/js/chunk-vendors.js:54792:17)\n at Generator.<anonymous> (http://localhost:8080/static/js/chunk-vendors.js:54873:22)\n at Generator.next (http://localhost:8080/static/js/chunk-vendors.js:54817:21)\n at asyncGeneratorStep (http://localhost:8080/static/js/chunk-vendors.js:16409:24)\n at _next (http://localhost:8080/static/js/chunk-vendors.js:16428:9)"
}
manifest.json
"sdkConfigs" : {
"ad" : {
"gdt" : {},
"ks" : {},
"ks-content" : {},
"sigmob" : {},
"hw" : {},
"bd" : {},
"gm" : {},
"wm" : {}
},
"oauth" : {},
"push" : {
"unipush" : {
"version" : "2",
"offline" : false
}
}
}
"mp-weixin" : {
。。。
"usingComponents" : true,
"secureNetwork" : {
"enable" : false
},
"unipush" : {
"enable" : true
}
},
"h5" : {
"unipush" : {
"enable" : true
},
"devServer" : {
"port" : 8080
}