在hbx中运行一切正常,编辑发布到前端网页托管运行就报错。报错的代码是:db.collection("jxm-nas").doc(${id}
).get(),错误信息是:
{"success":true,"data":{"code":"SYSTEM_ERROR","errCode":"SYSTEM_ERROR","message":"Unexpected token .","errMsg":"Unexpected token .","systemInfo":[]},"header":{"x-serverless-request-id":"ac1cc3041681263578887111789","x-serverless-runtime-version":"2.0.5","x-fc-code-checksum":"10934852359556265775","access-control-expose-headers":"Date,x-fc-request-id,x-fc-error-type,x-fc-code-checksum,x-fc-invocation-duration,x-fc-max-memory-usage,x-fc-log-result,x-fc-invocation-code-version","x-fc-invocation-service-version":"LATEST","x-fc-instance-id":"c-64360b7f-ee8b8238dfbe47c0a3f5","content-length":"274","date":"Wed, 12 Apr 2023 01:39:38 GMT","x-fc-request-id":"1-64360bda-aa9fecc42c11d25a5a70abda","x-fc-max-memory-usage":"32.54","x-fc-invocation-duration":"7","content-type":"application/octet-stream","x-serverless-http-status":"200"}}
1 个回复
BoredApe - 有问题就会有答案。
请提供更多的代码信息